public class AssociationRule extends Object implements Serializable
The support of a rule is defined as: support(A->C) = support(A+C).
The confidence of a rule is defined as: confidence(A->C) = support(A+C) / support(A).
The lift of a rule is defined as: lift(A->C) = confidence(A->C) / support(C).
Constructor and Description |
---|
AssociationRule(int[] antecedent,
int[] consequent,
double support,
double confidence,
double lift)
Construct a new association rule.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getAntecedent()
Return the antecedent item set of the rule.
|
double |
getConfidence()
Return the confidence of the rule.
|
int[] |
getConsequent()
Return the consequent item set of the rule.
|
double |
getLift()
Return the lift of the rule.
|
double |
getSupport()
Return the support of the rule.
|
String |
toString() |
public AssociationRule(int[] antecedent, int[] consequent, double support, double confidence, double lift)
antecedent
- the antecedent item setconsequent
- the consequent item setsupport
- the support for the ruleconfidence
- the confidence of the rulelift
- the lift of the rulepublic int[] getAntecedent()
public int[] getConsequent()
public double getConfidence()
public double getSupport()
public double getLift()
Copyright © 2024 Actian Corporation. All rights reserved.