public class DummySolver extends Object implements FunctionFitter
FunctionFitter
that simply skips the fitting process and leaves
the starting estimate untouched.
Use this when you want to rely solely on
StartPointEstimator
results and skip the extra curve fitting step.
Constructor and Description |
---|
DummySolver() |
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 . |
String |
toString() |
public void fit(double[][] x, double[] y, double[] a, FitFunction f) throws Exception
FunctionFitter
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!fit
in interface FunctionFitter
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.