ca.uottawa.balie
Class WekaAttribute

java.lang.Object
  extended by ca.uottawa.balie.WekaAttribute

public class WekaAttribute
extends java.lang.Object

Wrapper around the Weka attributes.

Author:
nadeaud

Constructor Summary
WekaAttribute(java.lang.String pi_Label)
          Construct a numeric attribute.
WekaAttribute(java.lang.String pi_Label, weka.core.FastVector pi_Values)
          Construct a nominal attribute.
 
Method Summary
 boolean IsNumeric()
          Checks if the attribute is numeric
 java.lang.String Label()
          Gets the name of an attribute.
 weka.core.FastVector Values()
          Gets the possible values for a nominal attribute.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WekaAttribute

public WekaAttribute(java.lang.String pi_Label)
Construct a numeric attribute. Possible values are real numbers.

Parameters:
pi_Label - Name of the attribute

WekaAttribute

public WekaAttribute(java.lang.String pi_Label,
                     weka.core.FastVector pi_Values)
Construct a nominal attribute. Possible values must be given.

Parameters:
pi_Label - Name of the attribute
pi_Values - Possible values
Method Detail

IsNumeric

public boolean IsNumeric()
Checks if the attribute is numeric

Returns:
True if numeric, False if nominal

Label

public java.lang.String Label()
Gets the name of an attribute.

Returns:
Name

Values

public weka.core.FastVector Values()
Gets the possible values for a nominal attribute.

Returns:
A vector of values (null if the attribute is numeric)