Package ai.libs.jaicore.ml.core.dataset
Interface INumericArrayInstance
-
- All Superinterfaces:
org.apache.commons.math3.ml.clustering.Clusterable,IAttributeArrayInstance
- All Known Subinterfaces:
INumericLabeledAttributeArrayInstance<L>
- All Known Implementing Classes:
SimpleInstance,SparseDyadRankingInstance,WekaInstance
public interface INumericArrayInstance extends IAttributeArrayInstance, org.apache.commons.math3.ml.clustering.Clusterable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description double[]getAsDoubleVector()Turns the instance into a double vector.IAttributeValue<java.lang.Double>getAttributeValue(int position)default double[]getPoint()-
Methods inherited from interface ai.libs.jaicore.ml.core.dataset.IAttributeArrayInstance
getAllAttributeValues, getAttributeValueAtPosition, getNumberOfAttributes
-
-
-
-
Method Detail
-
getAttributeValue
IAttributeValue<java.lang.Double> getAttributeValue(int position)
-
getAsDoubleVector
double[] getAsDoubleVector() throws ContainsNonNumericAttributesExceptionTurns the instance into a double vector.- Returns:
- The instance as a double vector.
- Throws:
ContainsNonNumericAttributesException- Thrown if the instance is to be converted into a double vector and still contains non-numeric attributes.
-
getPoint
default double[] getPoint()
- Specified by:
getPointin interfaceorg.apache.commons.math3.ml.clustering.Clusterable
-
-