public class NumberToVectorEncoder extends AbstractToVectorEncoder<java.lang.Number>
Vector
.vectorFactory
Constructor and Description |
---|
NumberToVectorEncoder()
Creates a new
NumberToVectorEncoder . |
Modifier and Type | Method and Description |
---|---|
void |
encode(java.lang.Number number,
Vector vector,
int index)
Encodes the given number into the given vector at the given index.
|
int |
getOutputDimensionality()
Gets the dimensionality of the converter, which is 1.
|
encode, evaluate, getVectorFactory, setVectorFactory
clone
public NumberToVectorEncoder()
NumberToVectorEncoder
.public void encode(java.lang.Number number, Vector vector, int index)
number
- The number to encode.vector
- The vector to encode into.index
- The index to encode at.public int getOutputDimensionality()