public class AssociationRule extends Object implements Serializable, Cloneable
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 double getConfidence()
double
specifying the confidence measure of
the association rule.public double getLift()
double
specifying the lift measure of the
association rule.public int[] getSupport()
int
array containing the Z, X, and Y
components of the association rule.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 void print()
The following is an example of this format:
X = {0} 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 © 1970-2015 Rogue Wave Software
Built October 13 2015.