|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.associations.AssociationRule
public abstract class AssociationRule
Abstract class for storing and manipulating an association rule.
| Constructor Summary | |
|---|---|
AssociationRule()
|
|
| Method Summary | |
|---|---|
int |
compareTo(AssociationRule other)
Compare this rule to the supplied rule. |
boolean |
containsItems(ArrayList<Item> items,
boolean useOr)
|
boolean |
equals(Object other)
Return true if this rule is equal to the supplied one. |
abstract Collection<Item> |
getConsequence()
Get the consequence of this rule. |
abstract int |
getConsequenceSupport()
Get the support for the consequence. |
abstract String[] |
getMetricNamesForRule()
Return the names of the metrics available for this rule. |
abstract double[] |
getMetricValuesForRule()
Get all the available metric values for this rule. |
abstract double |
getNamedMetricValue(String metricName)
Get the value of the named metric for this rule |
abstract int |
getNumberOfMetricsForRule()
Gets the number of metrics available for this rule. |
abstract Collection<Item> |
getPremise()
Get the premise of this rule. |
abstract int |
getPremiseSupport()
Get the support for the premise. |
abstract String |
getPrimaryMetricName()
Get the name of the primary metric of this rule (e.g. |
abstract double |
getPrimaryMetricValue()
Get the value of the metric for this rule. |
abstract int |
getTotalSupport()
Get the total support for this rule (premise + consequence). |
abstract int |
getTotalTransactions()
Get the total number of transactions in the data. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AssociationRule()
| Method Detail |
|---|
public abstract Collection<Item> getPremise()
public abstract Collection<Item> getConsequence()
public abstract String getPrimaryMetricName()
public abstract double getPrimaryMetricValue()
public abstract double getNamedMetricValue(String metricName)
throws Exception
metricName - the metric to get the value for
Exception - if the requested metric is unknown for this rulepublic abstract int getNumberOfMetricsForRule()
public abstract String[] getMetricNamesForRule()
public abstract double[] getMetricValuesForRule()
throws Exception
Exception - if a metric can't be computed for some reason.public abstract int getPremiseSupport()
public abstract int getConsequenceSupport()
public abstract int getTotalSupport()
public abstract int getTotalTransactions()
public int compareTo(AssociationRule other)
compareTo in interface Comparable<AssociationRule>other - the rule to compare to.
public boolean equals(Object other)
equals in class Object
public boolean containsItems(ArrayList<Item> items,
boolean useOr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||