gov.sandia.cognition.learning.function.vector
Class VectorizableVectorConverter

java.lang.Object
  extended by gov.sandia.cognition.learning.function.vector.VectorizableVectorConverter
All Implemented Interfaces:
Evaluator<Vectorizable,Vector>, CloneableSerializable, Serializable, Cloneable
Direct Known Subclasses:
VectorizableVectorConverterWithBias

public class VectorizableVectorConverter
extends Object
implements Evaluator<Vectorizable,Vector>, CloneableSerializable

The VectorizableVectorConverter class implements a conversion between a Vectorizable and an Vector by calling the proper conversion method on the Vectorizable.

Since:
2.0
Author:
Justin Basilico
See Also:
Serialized Form

Constructor Summary
VectorizableVectorConverter()
          Creates a new VectorizableVectorConverter.
 
Method Summary
 VectorizableVectorConverter clone()
          Creates a new clone (shallow copy) of this object.
 Vector evaluate(Vectorizable input)
          Evaluates the given input by converting it to a vector by calling the proper method on the given Vectorizable.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorizableVectorConverter

public VectorizableVectorConverter()
Creates a new VectorizableVectorConverter.

Method Detail

clone

public VectorizableVectorConverter clone()
Creates a new clone (shallow copy) of this object.

Specified by:
clone in interface CloneableSerializable
Overrides:
clone in class Object
Returns:
A new clone (shallow copy) of this object.

evaluate

public Vector evaluate(Vectorizable input)
Evaluates the given input by converting it to a vector by calling the proper method on the given Vectorizable.

Specified by:
evaluate in interface Evaluator<Vectorizable,Vector>
Parameters:
input - The input object.
Returns:
The vector form of the input.