gov.sandia.cognition.data.convert.vector
Interface DataToVectorEncoder<InputType>

Type Parameters:
InputType - The type of input data to be encoded into a Vector.
All Superinterfaces:
DataConverter<InputType,Vector>, Evaluator<InputType,Vector>, VectorOutputEvaluator<InputType,Vector>
All Known Implementing Classes:
AbstractToVectorEncoder, NumberConverterToVectorAdapter, NumberToVectorEncoder, UniqueBooleanVectorEncoder

public interface DataToVectorEncoder<InputType>
extends DataConverter<InputType,Vector>, VectorOutputEvaluator<InputType,Vector>

Defines a converter that can be used to encode data into a Vector.

Since:
3.0
Author:
Justin Basilico

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

encode

void encode(InputType object,
            Vector vector)
Encodes the given object into the given Vector. It starts at index zero in the Vector.

Parameters:
object - The object to encode.
vector - The vector to encode the object into.

encode

void encode(InputType object,
            Vector vector,
            int startIndex)
Encodes the given object into the given Vector, starting at the given index.

Parameters:
object - The object to encode.
vector - The vector to encode the object into.
startIndex - The index to start the encoding at.

getOutputDimensionality

int getOutputDimensionality()
Gets size of the the Vector created by the encoder.

Specified by:
getOutputDimensionality in interface VectorOutputEvaluator<InputType,Vector>
Returns:
The dimensionality of the Vector created by the encoder.