Package ai.libs.jaicore.ml.core.dataset
Interface IAttributeArrayInstance
-
- All Known Subinterfaces:
ILabeledAttributeArrayInstance<L>,INumericArrayInstance,INumericLabeledAttributeArrayInstance<L>
- All Known Implementing Classes:
SimpleInstance,SparseDyadRankingInstance,TimeSeriesInstance,WekaInstance
public interface IAttributeArrayInstanceInterface of an instance that consists of attributes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IAttributeValue<?>[]getAllAttributeValues()<T> IAttributeValue<T>getAttributeValueAtPosition(int position, java.lang.Class<T> type)Getter for the value of an attribute for the given position.intgetNumberOfAttributes()Getter for the number of attributes for the instance.
-
-
-
Method Detail
-
getAllAttributeValues
IAttributeValue<?>[] getAllAttributeValues()
-
getAttributeValueAtPosition
<T> IAttributeValue<T> getAttributeValueAtPosition(int position, java.lang.Class<T> type)
Getter for the value of an attribute for the given position.- Parameters:
position- The position of the attribute within the instance.type- The type for which the attribute value shall be returned.- Returns:
- The attribute value for the position.
-
getNumberOfAttributes
int getNumberOfAttributes()
Getter for the number of attributes for the instance.- Returns:
- Number of attributes
-
-