ca.pfv.spmf.algorithms.sequential_rules.cmdeogun
Class Rule
- java.lang.Object
-
- ca.pfv.spmf.algorithms.sequential_rules.cmdeogun.Rule
-
public class Rule extends java.lang.ObjectThis class represents a sequential rule found by the CMDeo algorithm.- See Also:
AlgoCMDeogun,Itemset
-
-
Constructor Summary
Constructors Constructor and Description Rule(Itemset itemset1, Itemset itemset2)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and 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)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.
-
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
-
-
DMelt 3.0 © DataMelt by jWork.ORG