ca.nengo.math.impl
Class IndependentDimensionApproximator.Factory
java.lang.Object
ca.nengo.math.impl.IndependentDimensionApproximator.Factory
- All Implemented Interfaces:
- ApproximatorFactory, java.io.Serializable, java.lang.Cloneable
- Enclosing class:
- IndependentDimensionApproximator
public static class IndependentDimensionApproximator.Factory
- extends java.lang.Object
- implements ApproximatorFactory
Factory for IndependentDimensionApproximators.
- Author:
- Bryan Tripp
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndependentDimensionApproximator.Factory
public IndependentDimensionApproximator.Factory()
getApproximator
public LinearApproximator getApproximator(float[][] evalPoints,
float[][] values)
- Specified by:
getApproximator in interface ApproximatorFactory
- Parameters:
evalPoints - Points at which component functions are evaluated. These should
usually be uniformly distributed, because the sum of error at these points is
treated as an integral over the domain of interest.values - The values of component funcitons at the evalPoints. The first dimension
makes up the list of functions, and the second the values of these functions at each
evaluation point.
- Returns:
- A LinearApproximator that can be used to approximate new Functions as a wieghted
sum of the given components.
- See Also:
ApproximatorFactory.getApproximator(float[][], float[][])
clone
public ApproximatorFactory clone()
throws java.lang.CloneNotSupportedException
- Specified by:
clone in interface ApproximatorFactory- Overrides:
clone in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException