public class TimeSeriesInstance<L> extends java.lang.Object implements ILabeledAttributeArrayInstance<L>
| Constructor and Description |
|---|
TimeSeriesInstance(IAttributeValue<?>[] attributeValues,
L targetValue)
Constructor.
|
TimeSeriesInstance(java.util.List<IAttributeValue<?>> attributeValues,
L targetValue) |
| Modifier and Type | Method and 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.
|
int |
getNumberOfAttributes()
Getter for the number of attributes for the instance.
|
L |
getTargetValue()
Getter for the value of the target attribute.
|
public TimeSeriesInstance(IAttributeValue<?>[] attributeValues, L targetValue)
dataset - attributeValues - targetValue - public TimeSeriesInstance(java.util.List<IAttributeValue<?>> attributeValues, L targetValue)
public <T> IAttributeValue<T> getAttributeValueAtPosition(int position, java.lang.Class<T> type)
IAttributeArrayInstancegetAttributeValueAtPosition in interface IAttributeArrayInstanceposition - The position of the attribute within the instance.type - The type for which the attribute value shall be returned.public L getTargetValue()
ILabeledInstancegetTargetValue in interface ILabeledInstance<L>public int getNumberOfAttributes()
IAttributeArrayInstancegetNumberOfAttributes in interface IAttributeArrayInstancepublic IAttributeValue<?>[] getAllAttributeValues()
getAllAttributeValues in interface IAttributeArrayInstance