Package ai.libs.jaicore.ml.core.dataset
Class TimeSeriesInstance<L>
- java.lang.Object
-
- ai.libs.jaicore.ml.core.dataset.TimeSeriesInstance<L>
-
- All Implemented Interfaces:
IAttributeArrayInstance,ILabeledAttributeArrayInstance<L>,ILabeledInstance<L>
public class TimeSeriesInstance<L> extends java.lang.Object implements ILabeledAttributeArrayInstance<L>
TimeSeriesInstance
-
-
Constructor Summary
Constructors Constructor Description TimeSeriesInstance(IAttributeValue<?>[] attributeValues, L targetValue)Constructor.TimeSeriesInstance(java.util.List<IAttributeValue<?>> attributeValues, L targetValue)
-
Method Summary
All Methods Instance Methods Concrete 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.LgetTargetValue()Getter for the value of the target attribute.
-
-
-
Constructor Detail
-
TimeSeriesInstance
public TimeSeriesInstance(IAttributeValue<?>[] attributeValues, L targetValue)
Constructor.- Parameters:
dataset-attributeValues-targetValue-
-
TimeSeriesInstance
public TimeSeriesInstance(java.util.List<IAttributeValue<?>> attributeValues, L targetValue)
-
-
Method Detail
-
getAttributeValueAtPosition
public <T> IAttributeValue<T> getAttributeValueAtPosition(int position, java.lang.Class<T> type)
Description copied from interface:IAttributeArrayInstanceGetter for the value of an attribute for the given position.- Specified by:
getAttributeValueAtPositionin interfaceIAttributeArrayInstance- 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.
-
getTargetValue
public L getTargetValue()
Description copied from interface:ILabeledInstanceGetter for the value of the target attribute.- Specified by:
getTargetValuein interfaceILabeledInstance<L>- Returns:
- The value of the traget attribute.
-
getNumberOfAttributes
public int getNumberOfAttributes()
Description copied from interface:IAttributeArrayInstanceGetter for the number of attributes for the instance.- Specified by:
getNumberOfAttributesin interfaceIAttributeArrayInstance- Returns:
- Number of attributes
-
getAllAttributeValues
public IAttributeValue<?>[] getAllAttributeValues()
- Specified by:
getAllAttributeValuesin interfaceIAttributeArrayInstance
-
-