InputType - The type of input data to be encoded into a Vector.public interface DataToVectorEncoder<InputType> extends DataConverter<InputType,Vector>, VectorOutputEvaluator<InputType,Vector>
Vector.| Modifier and Type | Method and Description |
|---|---|
void |
encode(InputType object,
Vector vector)
Encodes the given object into the given
Vector. |
void |
encode(InputType object,
Vector vector,
int startIndex)
Encodes the given object into the given
Vector, starting at the
given index. |
int |
getOutputDimensionality()
Gets size of the the
Vector created by the encoder. |
void encode(InputType object, Vector vector)
Vector. It starts at
index zero in the Vector.object - The object to encode.vector - The vector to encode the object into.void encode(InputType object, Vector vector, int startIndex)
Vector, starting at the
given index.object - The object to encode.vector - The vector to encode the object into.startIndex - The index to start the encoding at.int getOutputDimensionality()
Vector created by the encoder.getOutputDimensionality in interface VectorOutputEvaluator<InputType,Vector>Vector created by the
encoder.