public interface IInstance
extends org.apache.commons.math3.ml.clustering.Clusterable
| Modifier and Type | Method and Description |
|---|---|
double[] |
getAsDoubleVector()
Turns the instance into a double vector.
|
<T> IAttributeValue<T> |
getAttributeValue(int position,
java.lang.Class<T> type)
Getter for the value of an attribute for the given position.
|
default double[] |
getPoint() |
<T> IAttributeValue<T> |
getTargetValue(java.lang.Class<T> type)
Getter for the value of the target attribute.
|
<T> IAttributeValue<T> getAttributeValue(int position, java.lang.Class<T> type)
position - The position of the attribute within the instance.type - The type for which the attribute value shall be returned.<T> IAttributeValue<T> getTargetValue(java.lang.Class<T> type)
type - The type to bind the value of the target attribute.double[] getAsDoubleVector()
throws ContainsNonNumericAttributesException
ContainsNonNumericAttributesException - Thrown if the instance is to be converted into a double vector and still contains non-numeric attributes.default double[] getPoint()
getPoint in interface org.apache.commons.math3.ml.clustering.Clusterable