public class Rule
extends java.lang.Object
AlgoCMDeogun
,
Itemset
Constructor and Description |
---|
Rule(Itemset itemset1,
Itemset itemset2)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getAbsoluteSupport(int sequencecount)
Get the support of this rule as a percentage.
|
double |
getConfidence()
Get the confidence of this rule.
|
Itemset |
getItemset1()
Get the antecedent of the rule (left itemset)
|
Itemset |
getItemset2()
Get the consequent of the rule (right itemset)
|
double |
getLift(int sequencecount)
Get the lift of this rule.
|
java.lang.String |
getLiftAsString(int sequencecount)
Get the lift of this rule.
|
int |
getRelativeSupport() |
void |
print()
Print this rule to System.out
|
java.lang.String |
toString()
Get a string representation of this rule.
|
public Itemset getItemset1()
public Itemset getItemset2()
public double getAbsoluteSupport(int sequencecount)
sequencecount
- the number of sequence in the sequence databasepublic int getRelativeSupport()
public double getConfidence()
public double getLift(int sequencecount)
public java.lang.String getLiftAsString(int sequencecount)
public void print()
public java.lang.String toString()
toString
in class java.lang.Object