public class AssociationRule extends Object implements Serializable, Cloneable
An association rule has the form, \(X \implies Y\),
where X and Y are two disjoint sets of items (or products)
that are represented in a set of occurrences (transactions).
The AssociationRule
object contains members:
Modifier and Type | Method and Description |
---|---|
double |
getConfidence()
The confidence measure of the association rule.
|
double |
getLift()
The lift measure of the association rule.
|
int[] |
getSupport()
Support for the Z, X, and Y components of the association rule.
|
int[] |
getX()
The X components of the association rule.
|
int[] |
getY()
The Y components of the association rule.
|
void |
print()
Print the member data in this object.
|
static void |
print(AssociationRule[] ar)
Print out the association rules in
ar . |
public int[] getX()
int
array containing the X components of the
association rule.public int[] getY()
int
array containing the Y components of the
association rule.public int[] getSupport()
int
array containing the Z, X, and Y
components of the association rule.public double getConfidence()
double
specifying the confidence measure of
the association rule.public double getLift()
double
specifying the lift measure of the
association rule.public void print()
The following is an example of this format:
X = {0} \(\implies\) Y = {2}
supp(X)=27, supp(Y)=33, supp(X and Y)=22
conf= 0.81, lift=1.23
public static void print(AssociationRule[] ar)
ar
.ar
- an AssociationRule
array containing the
association rules generated from a set of itemsets.Copyright © 2020 Rogue Wave Software. All rights reserved.