|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.data.Attribute
public abstract class Attribute
This class represents an attribute of the dataset.
Metadata
,
Serialized FormConstructor Summary | |
---|---|
Attribute(java.lang.String name)
Creates a new Attribute instance. |
Method Summary | |
---|---|
Attribute |
clone()
|
int |
compareTo(Attribute o)
|
boolean |
equals(Attribute o)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
Returns the attribute's name. |
int |
hashCode()
|
abstract boolean |
isMissing(double value)
Checks if the specified value corresponds to a missing value. |
boolean |
isTarget()
Indicates if this attribute is the target attribute. |
void |
setName(java.lang.String name)
Sets the attribute's name. |
abstract 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 |
Constructor Detail |
---|
public Attribute(java.lang.String name)
Attribute
instance.
name
- the attribute's name.Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to set.public boolean isTarget()
true
if this attribute is the target attribute;
false
otherwise.public abstract void validate(java.lang.String value)
value
- to value to check.public abstract boolean isMissing(double value)
value
- the value to check.
true
if the specified value corresponds to a
missing value; false
otherwise.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(Attribute o)
public int compareTo(Attribute o)
compareTo
in interface java.lang.Comparable<Attribute>
public int hashCode()
hashCode
in class java.lang.Object
public Attribute clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |