public class AssociationRule
extends java.lang.Object
It is used for representing and handling an Association Rule
Constructor and Description |
---|
AssociationRule(short[] antecedent,
short[] consequent,
double ruleSupport,
double antecedentSupport,
double confidence)
It creates a new association rule by setting up its properties
|
Modifier and Type | Method and Description |
---|---|
short[] |
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
|
short[] |
getConsequent()
It retrieves the consequent part 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(short[] antecedent, short[] consequent, double ruleSupport, double antecedentSupport, double confidence)
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 supportantecedentSupport
- The value representing the antecedent supportconfidence
- The value representing the rule confidencepublic short[] getAntecedent()
It retrieves the antecedent part of an association rule
public short[] 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 java.lang.String toString()
It returns a raw string representation of an association rule
toString
in class java.lang.Object