- <init>
Constructor for a numeric or string attribute, where metadata is supplied.
Provides an alternative w
- name
Returns the attribute's name.
- numValues
Returns the number of attribute values. Returns 0 for attributes that are not
either nominal, string
- isNominal
Test if the attribute is nominal.
- value
Returns a value of a nominal or string attribute. Returns an empty string if the
attribute is neithe
- isNumeric
Tests if the attribute is numeric.
- index
Returns the index of this attribute.
- isString
Tests if the attribute is a string.
- copy
Produces a shallow copy of this attribute with a new name.
- indexOfValue
Returns the index of a given attribute value. (The index of the first occurence
of this value.)
- addStringValue
Adds a string value to the list of valid strings for attributes of type STRING
and returns the index
- type
Returns the attribute's type as an integer.