public class AlgoCMDeogun
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
long |
timeEndPreprocessing |
protected int |
transactionCount |
Constructor and Description |
---|
AlgoCMDeogun()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
printStats()
Print statistics about the latest algorithm execution.
|
void |
runAlgorithm(java.lang.String input,
java.lang.String output,
double absoluteMinSupport,
double minConfidence)
Run the algorithm with an absolute minimum support (double).
|
void |
runAlgorithm(java.lang.String input,
java.lang.String output,
int relativeSupport,
double minConfidence)
Run the algorithm with a relative minimum support (integer)
|
void |
setMaxLeftSize(int maxLeftSize)
Set the maximum antecedent size constraint for rules to be found.
|
void |
setMaxRightSize(int maxRightSize)
Set the maximum consequent size constraint for rules to be found.
|
void |
setMinLeftSize(int minLeftSize)
Set the minimum antecedent size constraint for rules to be found.
|
void |
setMinRightSize(int minRightSize)
Set the minimum consequent size constraint for rules to be found.
|
public long timeEndPreprocessing
protected int transactionCount
public void runAlgorithm(java.lang.String input, java.lang.String output, double absoluteMinSupport, double minConfidence) throws java.io.IOException
input
- input file containing a sequence database.output
- the file path for writing the resultabsoluteMinSupport
- the minsup is a percentage value (ex.: 0.05 = 5 % of all sequences in the database)minConfidence
- the minimum confidence thresholdjava.io.IOException
- exception if error while writing the output file.public void runAlgorithm(java.lang.String input, java.lang.String output, int relativeSupport, double minConfidence) throws java.io.IOException
input
- input file containing a sequence database.output
- the file path for writing the resultrelativeSupport
- the minsup is a number of sequences (ex.: 5 = 5 sequences of the database)minConfidence
- the minimum confidence thresholdjava.io.IOException
- exception if error while writing the output file.public void printStats()
public void setMinLeftSize(int minLeftSize)
minLeftSize
- an integerpublic void setMaxLeftSize(int maxLeftSize)
maxLeftSize
- an integerpublic void setMinRightSize(int minRightSize)
minRightSize
- an integerpublic void setMaxRightSize(int maxRightSize)
maxRightSize
- an integer