public class AssociationRule
extends java.lang.Object
Constructor and Description |
---|
AssociationRule(Itemset antecedent,
Itemset consequent,
double ruleSupport,
double antecedentSupport,
double confidence,
double consequentSupport,
double interestingness)
It creates a new association rule by setting up its properties
|
Modifier and Type | Method and Description |
---|---|
Itemset |
getAntecedent()
It retrieves the antecedent part of an association rule
|
double |
getAntecedentSupport()
It returns the antecedent support of an association rule
|
double |
getConfidence()
It returns the confidence of an association rule
|
Itemset |
getConsequent()
It retrieves the consequent part of an association rule
|
double |
getConsequentSupport()
It returns the consequent support of an association rule
|
double |
getInterestingness()
It returns the interest measure of an association rule
|
double |
getRuleSupport()
It returns the support of an association rule
|
java.lang.String |
toString()
It returns a raw string representation of an association rule
|
public AssociationRule(Itemset antecedent, Itemset consequent, double ruleSupport, double antecedentSupport, double confidence, double consequentSupport, double interestingness)
It creates a new association rule by setting up its properties
antecedent
- The antecedent part of the ruleconsequent
- The consequent part of the ruleruleSupport
- The value representing the rule supportconfidence
- The value representing the rule confidenceantecedentSupport
- The value representing the antecedente supportconsequentSupport
- The value representing the consequent supportinterestingness
- The value representing the interest measurepublic Itemset getAntecedent()
It retrieves the antecedent part of an association rule
public Itemset getConsequent()
It retrieves the consequent part of an association rule
public double getRuleSupport()
It returns the support of an association rule
public double getAntecedentSupport()
It returns the antecedent support of an association rule
public double getConfidence()
It returns the confidence of an association rule
public double getConsequentSupport()
It returns the consequent support of an association rule
public double getInterestingness()
It returns the interest measure of an association rule
public java.lang.String toString()
It returns a raw string representation of an association rule
toString
in class java.lang.Object