ca.nengo.math.impl
Class GradientDescentApproximator.Factory
java.lang.Object
ca.nengo.math.impl.GradientDescentApproximator.Factory
- All Implemented Interfaces:
- ApproximatorFactory, java.io.Serializable, java.lang.Cloneable
- Enclosing class:
- GradientDescentApproximator
public static class GradientDescentApproximator.Factory
- extends java.lang.Object
- implements ApproximatorFactory
An ApproximatorFactory that produces GradientDescentApproximators.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GradientDescentApproximator.Factory
public GradientDescentApproximator.Factory(GradientDescentApproximator.Constraints constraints,
boolean ignoreBias)
- Parameters:
constraints
- As in GradientDescentApproximator constructorignoreBias
- As in GradientDescentApproximator constructor
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 functions 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
- Returns:
- Valid clone
- Throws:
java.lang.CloneNotSupportedException
- if clone can't be made