|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.associations.Item
weka.associations.NumericItem
public class NumericItem
Class that encapsulates a numeric item.
| Nested Class Summary | |
|---|---|
static class |
NumericItem.Comparison
|
| Constructor Summary | |
|---|---|
NumericItem(Attribute att,
double splitPoint,
NumericItem.Comparison comp)
Constructs a new NumericItem |
|
| Method Summary | |
|---|---|
boolean |
equals(Object compareTo)
Equals. |
NumericItem.Comparison |
getComparison()
Gets the comparison operator for this item. |
String |
getComparisonAsString()
Get this item's comparison operator as a String. |
String |
getItemValueAsString()
Get this item's value as a String. |
double |
getSplitPoint()
Gets the numeric test. |
String |
toString(boolean freq)
A string representation of this item, (i.e. |
| Methods inherited from class weka.associations.Item |
|---|
compareTo, decreaseFrequency, decreaseFrequency, getAttribute, getFrequency, hashCode, increaseFrequency, increaseFrequency, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NumericItem(Attribute att,
double splitPoint,
NumericItem.Comparison comp)
throws Exception
NumericItem
att - the attribute that backs the item.splitPoint - the numeric test value.comp - the comparison operator.
Exception - if the NumericItem can't be constructed.| Method Detail |
|---|
public double getSplitPoint()
public NumericItem.Comparison getComparison()
public String getItemValueAsString()
getItemValueAsString in class Itempublic String getComparisonAsString()
getComparisonAsString in class Itempublic String toString(boolean freq)
toString in class Itemfreq - true if the frequency should be included.
public boolean equals(Object compareTo)
equals in class Item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||