|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
InputType - The type of input data to be encoded into a Vector.public interface DataToVectorEncoder<InputType>
Defines a converter that can be used to encode data into a Vector.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface gov.sandia.cognition.evaluator.Evaluator |
|---|
evaluate |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||