Class Attribute

java.lang.Object
  extended by Attribute

public class Attribute
extends java.lang.Object

A class describing an attribute in a machine learning problem: in particular, the name of the attribute and the values it can take

Author:
John MacCormick

Constructor Summary
Attribute(java.lang.String name, java.lang.String[] values)
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.String[] getValues()
           
 void print()
          print a description of the attribute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(java.lang.String name,
                 java.lang.String[] values)
Parameters:
name - the name of the attribute
values - the values this attribute can take
Method Detail

print

public void print()
print a description of the attribute


getName

public java.lang.String getName()
Returns:
the name of the attribute

getValues

public java.lang.String[] getValues()
Returns:
the values this attribute can take