Nengo.ca

ca.nengo.math.impl
Class IndependentDimensionApproximator.Factory

java.lang.Object
  extended by 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.

See Also:
Serialized Form

Constructor Summary
IndependentDimensionApproximator.Factory()
           
 
Method Summary
 ApproximatorFactory clone()
           
 LinearApproximator getApproximator(float[][] evalPoints, float[][] values)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndependentDimensionApproximator.Factory

public IndependentDimensionApproximator.Factory()
Method Detail

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

Nengo.ca