Nengo.ca

ca.nengo.util.impl
Class FixedVectorGenerator

java.lang.Object
  extended by ca.nengo.util.impl.FixedVectorGenerator
All Implemented Interfaces:
VectorGenerator, java.io.Serializable

public class FixedVectorGenerator
extends java.lang.Object
implements VectorGenerator, java.io.Serializable

Generates vectors from a given set. TODO: Reference Deak, Muller

See Also:
Serialized Form

Constructor Summary
FixedVectorGenerator(float[][] vectors)
           
 
Method Summary
 float[][] genVectors(int number, int dimension)
          The vector distribution is decided by implementing classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedVectorGenerator

public FixedVectorGenerator(float[][] vectors)
Method Detail

genVectors

public float[][] genVectors(int number,
                            int dimension)
Description copied from interface: VectorGenerator
The vector distribution is decided by implementing classes.

Specified by:
genVectors in interface VectorGenerator
Parameters:
number - Number of vectors to be returned
dimension - Dimension of the vectors to be returned
Returns:
A List of float[] vectors

Nengo.ca