public class NumericItem extends Item implements 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(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.
|
compareTo, decreaseFrequency, decreaseFrequency, getAttribute, getFrequency, hashCode, increaseFrequency, increaseFrequency, toString
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.public double getSplitPoint()
public NumericItem.Comparison getComparison()
public String getItemValueAsString()
getItemValueAsString
in class Item
public String getComparisonAsString()
getComparisonAsString
in class Item
public String toString(boolean freq)
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.