public class TimeSeriesAttributeType extends java.lang.Object implements IAttributeType<org.nd4j.linalg.api.ndarray.INDArray>
| Constructor and Description |
|---|
TimeSeriesAttributeType(int length) |
| Modifier and Type | Method and Description |
|---|---|
IAttributeValue<org.nd4j.linalg.api.ndarray.INDArray> |
buildAttributeValue(java.lang.Object value)
Casts the value to the respective type and returns an attribute value with the creating attribute type as the referenced type.
|
IAttributeValue<org.nd4j.linalg.api.ndarray.INDArray> |
buildAttributeValue(java.lang.String stringDescription)
Builds an attribute value object from a string description.
|
int |
getLength()
Get the length of this time series attribute type.
|
boolean |
isValidValue(org.nd4j.linalg.api.ndarray.INDArray value)
Validates whether a INDArray conforms to this time series.
|
void |
setLength(int length) |
public boolean isValidValue(org.nd4j.linalg.api.ndarray.INDArray value)
isValidValue in interface IAttributeType<org.nd4j.linalg.api.ndarray.INDArray>value - The value to validated.public IAttributeValue<org.nd4j.linalg.api.ndarray.INDArray> buildAttributeValue(java.lang.Object value)
IAttributeTypebuildAttributeValue in interface IAttributeType<org.nd4j.linalg.api.ndarray.INDArray>value - The value of the attribute.public IAttributeValue<org.nd4j.linalg.api.ndarray.INDArray> buildAttributeValue(java.lang.String stringDescription)
IAttributeTypebuildAttributeValue in interface IAttributeType<org.nd4j.linalg.api.ndarray.INDArray>stringDescription - A String-format description of the attribute's value.public int getLength()
public void setLength(int length)