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.
- Author:
- Bryan Tripp
fit
Function fit(float[] x,
float[] y)
- Parameters:
x
- Example x pointsy
- 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
- Throws:
java.lang.CloneNotSupportedException