Nengo.ca

ca.nengo.math
Interface CurveFitter

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
LinearCurveFitter, PolynomialCurveFitter

public interface CurveFitter
extends java.lang.Cloneable

Finds a Function that fits a set of a example points in some sense (e.g. least-squares). For example, least-squares polynomial approximation and spline interpolation are possibly implementations.


Method Summary
 CurveFitter clone()
           
 Function fit(float[] x, float[] y)
           
 

Method Detail

fit

Function fit(float[] x,
             float[] y)
Parameters:
x - Example x points
y - Example y points (must be same length as x)
Returns:
A Function that approximates the mapping Y=f(X) exemplified by x and y.

clone

CurveFitter clone()
                  throws java.lang.CloneNotSupportedException
Returns:
Valid clone
Throws:
java.lang.CloneNotSupportedException - is clone can't be made

Nengo.ca