Class Instance

java.lang.Object
  extended by Instance

public class Instance
extends java.lang.Object

An Instance object represents a single instance in a training or test set

Author:
John MacCormick

Constructor Summary
Instance(java.lang.String[] values)
          Create a new instance with the given values.
 
Method Summary
 java.lang.String[] getValues()
          Get an array listing the values of this instance, listed in the same order as the AttributeSet for the current machine learning problem.
 void print()
          print the instance in a legible format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instance

public Instance(java.lang.String[] values)
Create a new instance with the given values.

Parameters:
values - an array of strings naming the values this instance takes. The ordering of this array is the same as the AttributeSet being used for the current machine learning problem.
Method Detail

print

public void print()
print the instance in a legible format


getValues

public java.lang.String[] getValues()
Get an array listing the values of this instance, listed in the same order as the AttributeSet for the current machine learning problem.

Returns:
the values