public class AssociationRule
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int[] |
antecedent
Antecedent itemset.
|
double |
confidence
The confidence value.
|
int[] |
consequent
Consequent itemset.
|
double |
leverage
The difference between the probability of the rule and the expected
probability if the items were statistically independent.
|
double |
lift
How many times more often antecedent and consequent occur together
than expected if they were statistically independent.
|
double |
support
The support value.
|
Constructor and Description |
---|
AssociationRule(int[] antecedent,
int[] consequent,
double support,
double confidence,
double lift,
double leverage)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
public final int[] antecedent
public final int[] consequent
public final double support
public final double confidence
public final double lift
public final double leverage
public AssociationRule(int[] antecedent, int[] consequent, double support, double confidence, double lift, double leverage)
antecedent
- the antecedent itemset (LHS) of the association rule.consequent
- the consequent itemset (RHS) of the association rule.support
- the proportion of instances in the dataset that contain an itemset.confidence
- the percentage of instances that contain the consequent
and antecedent together over the number of instances that
only contain the antecedent.lift
- how many times more often antecedent and consequent occur together
than expected if they were statistically independent.leverage
- the difference between the probability of the rule and the expected
probability if the items were statistically independent.