public class AlgoRULEGROWTHTemp2
extends java.lang.Object
Occurence
,
Sequence
,
SequenceDatabase
Constructor and Description |
---|
AlgoRULEGROWTHTemp2()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
inputRules() |
java.lang.String[] |
outputRules() |
void |
printStats()
Print statistics about the last algorithm execution to System.out.
|
void |
runAlgorithm(double minSupport,
double minConfidence,
SequenceDatabase sequencedatabase)
The main method to run the algorithm
|
void |
runAlgorithm(SequenceDatabase ruleSequencesDatabase,
int relativeMinsup,
double minConfidence)
The main method to run the algorithm
|
void |
setMaxAntecedentSize(int maxAntecedentSize)
Set the number of items that a rule antecedent should contain (optional).
|
void |
setMaxConsequentSize(int maxConsequentSize)
Set the number of items that a rule consequent should contain (optional).
|
public void runAlgorithm(double minSupport, double minConfidence, SequenceDatabase sequencedatabase) throws java.io.IOException
minSupport
- : the minimum support (percentage as a double value)minConfidence
- : the minimum confidence thresholdinput
- : an input file path of a sequence databaseoutput
- : a file path for writing the output file containing the seq. rules.java.io.IOException
- if error reading/writing filespublic void runAlgorithm(SequenceDatabase ruleSequencesDatabase, int relativeMinsup, double minConfidence) throws java.io.IOException
relativeMinsup
- : the minimum support as an integer value (a relative minimum support)minConfidence
- : the minimum confidence thresholdinput
- : an input file path of a sequence databaseoutput
- : a file path for writing the output file containing the seq. rules.java.io.IOException
- if error reading/writing filespublic java.lang.String[] inputRules()
public java.lang.String[] outputRules()
public void setMaxAntecedentSize(int maxAntecedentSize)
maxAntecedentSize
- the maximum number of itemspublic void setMaxConsequentSize(int maxConsequentSize)
maxConsequentSize
- the maximum number of itemspublic void printStats()