public class NumericItem extends Item implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
NumericItem.Comparison |
Constructor and Description |
---|
NumericItem(Attribute att,
double splitPoint,
NumericItem.Comparison comp)
Constructs a new
NumericItem |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object compareTo)
Equals.
|
NumericItem.Comparison |
getComparison()
Gets the comparison operator for this item.
|
java.lang.String |
getComparisonAsString()
Get this item's comparison operator as a String.
|
java.lang.String |
getItemValueAsString()
Get this item's value as a String.
|
double |
getSplitPoint()
Gets the numeric test.
|
java.lang.String |
toString(boolean freq)
A string representation of this item, (i.e.
|
compareTo, decreaseFrequency, decreaseFrequency, getAttribute, getFrequency, hashCode, increaseFrequency, increaseFrequency, toString
public NumericItem(Attribute att, double splitPoint, NumericItem.Comparison comp) throws java.lang.Exception
NumericItem
att
- the attribute that backs the item.splitPoint
- the numeric test value.comp
- the comparison operator.java.lang.Exception
- if the NumericItem can't be constructed.public double getSplitPoint()
public NumericItem.Comparison getComparison()
public java.lang.String getItemValueAsString()
getItemValueAsString
in class Item
public java.lang.String getComparisonAsString()
getComparisonAsString
in class Item
public java.lang.String toString(boolean freq)