Class Attribute
java.lang.Object
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 |
Attribute
public Attribute(java.lang.String name,
java.lang.String[] values)
- Parameters:
name
- the name of the attributevalues
- the values this attribute can take
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