|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.associations.Item
weka.associations.NominalItem
public class NominalItem
Class that encapsulates a nominal item.
| Constructor Summary | |
|---|---|
NominalItem(Attribute att,
int valueIndex)
Constructs a new NominalItem. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object compareTo)
Equals. |
String |
getComparisonAsString()
Get this item's comparison operator as a String. |
String |
getItemValueAsString()
Get this item's value as a String. |
int |
getValueIndex()
Get the value index for this item. |
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 NominalItem(Attribute att,
int valueIndex)
throws Exception
att - the attribute that backs the item.valueIndex - the index of the value for this item.
Exception - if the NominalItem can't be constructed.| Method Detail |
|---|
public int getValueIndex()
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 | |||||||||