public interface FitFunction
Functions defined here are scalar, multi-dimensional ones. We impose that they can return a gradient, so as to use various curve-fitting scheme.
| Modifier and Type | Method and Description |
|---|---|
double |
grad(double[] x,
double[] a,
int ak)
Evaluates the gradient value of the function, taken with respect to the
akth parameter, evaluated at point x. |
double |
hessian(double[] x,
double[] a,
int r,
int c)
Evaluates the hessian value of the function, taken with respect to the
rth and cth parameters,
evaluated at point x. |
double |
val(double[] x,
double[] a)
Evaluates this function at point
x. |
double val(double[] x,
double[] a)
x. The function is
otherwise defined over an array of parameters a, that
is the target of the fitting procedure.x - the multidimensional to evaluate the function ata - the set of parameters that defines the functionxdouble grad(double[] x,
double[] a,
int ak)
akth parameter, evaluated at point x.x - the point to evaluate the gradient ata - the set of parameters that defines the functionak - the index of the parameter to compute the gradientdf(x,a)/da_kval(double[], double[])double hessian(double[] x,
double[] a,
int r,
int c)
rth and cth parameters,
evaluated at point x.x - the point to evaluate the gradient ata - the set of parameters that defines the functionr - the index of the first parameter to compute the gradientc - the index of the second parameter to compute the gradient(r, c) element of the hessian matrix d²f(x,a)/(da_r da_c)val(double[], double[])Copyright © 2015–2022 ImgLib2. All rights reserved.