Package com.groiss.ml.ds
Class Attribute<T>
java.lang.Object
com.groiss.ml.ds.Attribute<T>
- Direct Known Subclasses:
NominalAttribute
,NumericAttribute
Objects of this class represent the columns in a
DataSet
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected abstract String
Returns the values supported by this attribute as ARFF stringgetClazz()
Returns the class of the values represented by this attribute.getName()
Returns the name of the attribute represented by this instanceint
hashCode()
Returns the ARFF representation of this attribute.toString()
-
Constructor Details
-
Attribute
Creates a new attribute with the given name and class .- Parameters:
name
- the name of this attributeclazz
- the class of the values represented by this attribute
-
-
Method Details
-
toARFFString
Returns the ARFF representation of this attribute.- Returns:
- a string representing the data in ARFF.
-
getARFFValues
Returns the values supported by this attribute as ARFF string- Returns:
- the supported values as ARFF string
-
getName
Returns the name of the attribute represented by this instance- Returns:
- the attribute's name
-
getClazz
Returns the class of the values represented by this attribute.- Returns:
- the attribute's value class
-
toString
-
hashCode
public int hashCode() -
equals
-