An estimator function is given by:
n2(x) = s( x; p1,... )
indicating that the square of the estimator function is presented
as both a function of x and an additional set of parameters.
Given a set of empirical data pairs (x, f(x)),
it is required that values of the parameters which minimize the error function:
SUM( n(x) - f(x) )2
where the sum is over all the data pairs.
It is necessary (although not sufficient) that the simultaneous zero of the
error derivative functions:
ki = SUM( 2 * ( n(x) - f(x) ) * dn(x)/dpi )
be found.
Given an initial estimation for the parameters, the parameter estimation can be updated by:
P = P - Mij-1 * K
where P is the vector of parameter estimations, Mij is the matrix of partial derivatives of the error derivative functions and
K is the transposed vector of error derivative function values.
The individual matrix terms can calculated by:
Mij = SUM( 2 * ( n(x) - f(x) * d2n(x)/dpi dpj +
2 * dn(x)/dpi * dn(x)/dpj )
DERIVATIVES
From the form of the estimator function, the first derivative values may be calculated by:
dn(x)/dpi = ( 0.5/n(x) ) * ds(x;p1,...)/dpi
leading to the second derivative calculation:
d2n(x)/dpi dpj = ( 0.5/n(x) ) * ( d2s(x;p1,...)/dpi dpj - 2 * dn(x)/dpi * dn(x)/dpj )