ca.nengo.math.impl
Class IndependentDimensionApproximator.EvalPointFactory
java.lang.Object
ca.nengo.math.impl.IndependentDimensionApproximator.EvalPointFactory
- All Implemented Interfaces:
- VectorGenerator
- Enclosing class:
- IndependentDimensionApproximator
public static class IndependentDimensionApproximator.EvalPointFactory
- extends java.lang.Object
- implements VectorGenerator
A VectorGenerator for use with IndependentDimensionApproximator as an evaluation point factory.
It returns a constant number of vectors regardless of the number requested. In each vector, all
the elements are the same. The element is drawn from an underlying one-dimensional VectorGenerator.
This allows creation of high dimensional ensembles where all encoders are on an axis, without
evaluation responses at a number of evaluation points that grows with the number of dimensions
(as would normally be required).
- Author:
- Bryan Tripp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndependentDimensionApproximator.EvalPointFactory
public IndependentDimensionApproximator.EvalPointFactory(float radius,
int points)
- Parameters:
radius
- As RandomHypersphereGenerator argpoints
- Number of vectors produced, regardless of number requested
getRadius
public float getRadius()
setRadius
public void setRadius(float radius)
getPoints
public int getPoints()
setPoints
public void setPoints(int points)
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 returneddimension
- Dimension of the vectors to be returned
- Returns:
- A List of float[] vectors
- See Also:
VectorGenerator.genVectors(int, int)