public interface FunctionFitter
Modifier and Type | Method and Description |
---|---|
void |
fit(double[][] x,
double[] y,
double[] a,
FitFunction f)
Minimizes
E = sum {(y[k] - f(x[k],a)) }^2 . |
void fit(double[][] x, double[] y, double[] a, FitFunction f) throws Exception
E = sum {(y[k] - f(x[k],a)) }^2
.
Note that function implements the value and gradient of f(x,a),
NOT the value and gradient of E with respect to a!x
- array of domain points, each may be multidimensional.
(For instance, for 2D data, provides a double array of N double arrays
of 2 elements: x & y.)y
- corresponding array of values.a
- the parameters/state of the model. Is updated by the call.f
- the function to fit on the domain points.Exception
- if the fitting process meets a numerical problem.Copyright © 2015–2022 ImgLib2. All rights reserved.