The Instance Class
All attribute values are stored as doubles
- Value of nominal attribute is index of the nominal value in attribute definition
Some important methods
classAttribute() Returns class attribute
classValue() Returns an instance's class value
value(int) Returns an specified attribute value in internal format
enumerateAttributes() Returns an enumeration of all the attributes
weight() Returns the instance's weight
Instances is a collection of Instance objects
numInstances() Returns the number of instances in the dataset
instance(int) Returns the instance at the given position
enumerateInstances() Returns an enumeration of all instances in the dataset