net.sf.myra.datamining.io
Class ArffHelper.UnsupportedAttribute
java.lang.Object
net.sf.myra.datamining.data.Attribute
net.sf.myra.datamining.io.ArffHelper.UnsupportedAttribute
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Attribute>
- Enclosing class:
- ArffHelper
protected static class ArffHelper.UnsupportedAttribute
- extends Attribute
This class represents an unsupported attribute (e.g. string or date
attributes).
- See Also:
- Serialized Form
Method Summary |
boolean |
isMissing(double value)
Checks if the specified value corresponds to a missing value. |
void |
validate(java.lang.String value)
Checks of the current value belongs to the attribute's domain. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ArffHelper.UnsupportedAttribute
public ArffHelper.UnsupportedAttribute(java.lang.String name)
- Default constructor.
validate
public void validate(java.lang.String value)
- Description copied from class:
Attribute
- Checks of the current value belongs to the attribute's domain.
- Specified by:
validate
in class Attribute
- Parameters:
value
- to value to check.
isMissing
public boolean isMissing(double value)
- Description copied from class:
Attribute
- Checks if the specified value corresponds to a missing value.
- Specified by:
isMissing
in class Attribute
- Parameters:
value
- the value to check.
- Returns:
true
if the specified value corresponds to a
missing value; false
otherwise.
Copyright © 2013. All Rights Reserved.