public class EllipticGaussianOrtho extends Object implements FitFunction
This fitting target function is defined over dimension n, by the following
2n+1 parameters:
k = 0..n-1 - x₀ᵢ (with i = k) k = n - A k = n+1..2n - bᵢ (with i = k-n-1)with
f(x) = A × exp( - S )and
S = ∑ bᵢ × (xᵢ - x₀ᵢ)²
| Constructor and Description |
|---|
EllipticGaussianOrtho() |
| Modifier and Type | Method and Description |
|---|---|
double |
grad(double[] x,
double[] a,
int k)
Returns the gradient value of this function, with respect to the variable
specified by its index: Partial derivatives indices are ordered as follow:
|
double |
hessian(double[] x,
double[] a,
int r,
int c)
Returns the hessian value of this function, with respect to the variable
specified by its index: Partial derivatives indices are ordered as follow:
|
String |
toString() |
double |
val(double[] x,
double[] a)
Evaluates this function at point
x. |
public final double val(double[] x,
double[] a)
FitFunctionx. The function is
otherwise defined over an array of parameters a, that
is the target of the fitting procedure.val in interface FitFunctionx - the multidimensional to evaluate the function ata - the set of parameters that defines the functionxpublic final double grad(double[] x,
double[] a,
int k)
k = 0..n-1 - x_i (with i = k-1) k = n - A k = n+1..2n - b_i (with i = k-n-1)
grad in interface FitFunctionx - the position array to compute the gradient at.a - the parameters array that specified the gaussian shape.k - the parameter index for derivation.k for the gaussian with parameters a, calculated
at position x.FitFunction.val(double[], double[])public final double hessian(double[] x,
double[] a,
int r,
int c)
k = 0..n-1 - x_i (with i = k-1) k = n - A k = n+1..2n - b_i (with i = k-n-1)
hessian in interface FitFunctionx - the position array to compute the gradient at.a - the parameters array that specified the gaussian shape.r - the parameter index for the first derivation.c - the parameter index for the second derivation.r, c for the elliptic gaussian with parameters a, calculated
at position x.FitFunction.val(double[], double[])Copyright © 2015–2022 ImgLib2. All rights reserved.