Class Rule
- java.lang.Object
-
- org.processmining.logfiltering.algorithms.SPMF.RuleGrowth.Rule
-
public class Rule extends java.lang.ObjectThis class represents a sequential rule found by the CMDeo algorithm.- Author:
- Philippe Fournier-Viger
- See Also:
AlgoCMDeogun,Itemset
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAbsoluteSupport(int sequencecount)Get the support of this rule as a percentage.doublegetConfidence()Get the confidence of this rule.ItemsetgetItemset1()Get the antecedent of the rule (left itemset)ItemsetgetItemset2()Get the consequent of the rule (right itemset)doublegetLift(int sequencecount)Get the lift of this rule.java.lang.StringgetLiftAsString(int sequencecount)Get the lift of this rule.intgetRelativeSupport()voidprint()Print this rule to System.outjava.lang.StringtoString()Get a string representation of this rule.
-
-
-
Method Detail
-
getItemset1
public Itemset getItemset1()
Get the antecedent of the rule (left itemset)- Returns:
- an Itemset
-
getItemset2
public Itemset getItemset2()
Get the consequent of the rule (right itemset)- Returns:
- an Itemset
-
getAbsoluteSupport
public double getAbsoluteSupport(int sequencecount)
Get the support of this rule as a percentage.- Parameters:
sequencecount- the number of sequence in the sequence database- Returns:
- the support as a double
-
getRelativeSupport
public int getRelativeSupport()
-
getConfidence
public double getConfidence()
Get the confidence of this rule.- Returns:
- a double value.
-
getLift
public double getLift(int sequencecount)
Get the lift of this rule.- Returns:
- a double value.
-
getLiftAsString
public java.lang.String getLiftAsString(int sequencecount)
Get the lift of this rule. - TEMP!!- Returns:
- a String value.
-
print
public void print()
Print this rule to System.out
-
toString
public java.lang.String toString()
Get a string representation of this rule.- Overrides:
toStringin classjava.lang.Object
-
-