ca.nengo.math
Interface ApproximatorFactory
- All Superinterfaces:
- java.lang.Cloneable, java.io.Serializable
- All Known Implementing Classes:
- GradientDescentApproximator.Factory, IndependentDimensionApproximator.Factory, WeightedCostApproximator.Factory
public interface ApproximatorFactory
- extends java.io.Serializable, java.lang.Cloneable
Produces LinearApproximators, which approximate Functions through a weighted sum of component
functions. The component functions are given as lists of evaluation points and corresponding
values.
- Author:
- Bryan Tripp
getApproximator
LinearApproximator getApproximator(float[][] evalPoints,
float[][] values)
- 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.
clone
ApproximatorFactory clone()
throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException