public class Reducts
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
Reducts.ReductsCalculationResult |
Class contains results of
calculateAllReducts and
calculateAllReductsWithConsistencyLevel methods. |
Constructor | Description |
---|---|
Reducts() |
Modifier and Type | Method | Description |
---|---|---|
static Reducts.ReductsCalculationResult |
calculateAllReducts(MemoryContainer container,
jmaf.core.IProgressNotifier monitor,
java.io.File isfFile) |
Calculates list of all reducts using DMT (Discernibility Matrix
Transformation) adapted for domination relation.
|
static Reducts.ReductsCalculationResult |
calculateAllReductsWithConsistencyLevel(MemoryContainer container,
jmaf.core.IProgressNotifier monitor,
double consistencyLevel,
java.io.File isfFile) |
Calculates list of all reducts in container by browsing all reducts ->
very inefficient method
|
static byte[] |
calculateCore(MemoryContainer container,
jmaf.core.IProgressNotifier monitor,
double consistencyLevel) |
Calculates memory container's core.
|
static byte[] |
calculateOneReduct(byte[] core,
MemoryContainer container,
jmaf.core.IProgressNotifier monitor,
double consistencyLevel) |
Calculates one reduct on a base of given core.
|
static int |
countNonzeroElemens(byte[] mask) |
Counts non-zero elements in given array
|
public static byte[] calculateCore(MemoryContainer container, jmaf.core.IProgressNotifier monitor, double consistencyLevel) throws java.lang.InterruptedException
container
- MemoryContainer objectmonitor
- ProgressMonitor objectconsistencyLevel
- level of consistencyjava.lang.InterruptedException
- When execution is canceledpublic static byte[] calculateOneReduct(byte[] core, MemoryContainer container, jmaf.core.IProgressNotifier monitor, double consistencyLevel) throws java.lang.InterruptedException, jmaf.core.exceptions.CannotCalculateException
calculateCore
method.core
- Given corecontainer
- Memory container objectmonitor
- Progress monitor objectconsistencyLevel
- level of consistencyjava.lang.InterruptedException
jmaf.core.exceptions.CannotCalculateException
- when cannot calculate dominancepublic static int countNonzeroElemens(byte[] mask)
mask
- Given arraypublic static Reducts.ReductsCalculationResult calculateAllReducts(MemoryContainer container, jmaf.core.IProgressNotifier monitor, java.io.File isfFile) throws java.lang.InterruptedException
container
- MemoryContainer objectmonitor
- IProgressMonitor objectisfFile
- java.lang.InterruptedException
public static Reducts.ReductsCalculationResult calculateAllReductsWithConsistencyLevel(MemoryContainer container, jmaf.core.IProgressNotifier monitor, double consistencyLevel, java.io.File isfFile) throws java.lang.InterruptedException
container
- Memory Container objectmonitor
- ProgressMonitor objectconsistencyLevel
- Consistency levelisfFile
- Isf file associated with given memory containerjava.lang.InterruptedException
- When calculations are interrupted