LTL
2.0.x
|
Approximation of a Gaussian function via Marquardt-Levenberg algorithm. More...
Inherits MRQFunction< TPAR, TDAT, NPAR, NDIM >.
Public Member Functions | |
void | setData (const MArray< TDAT, NDIM > &indata, const TDAT in_nan, const MArray< TDAT, NDIM > &inerror2) |
Set data, error and NaN value. More... | |
void | freeData () |
Free data and error. More... | |
TPAR | marquardtCoefficients (const FVector< TPAR, NPAR > &restrict_ parameter, const TPAR chisquare_limit, FMatrix< TPAR, NPAR, NPAR > &restrict_ a, FVector< TPAR, NPAR > &restrict_ b) const |
Calculate actual ![]() | |
size_t | getNdof () const |
Return degrees of freedom for fit. More... | |
Static Public Member Functions | |
static FVector< TPAR, NPAR > | partofit (const FVector< TPAR, NPAR > ¶meter) |
Convert external fit parameters to internal representation. More... | |
static FVector< TPAR, NPAR > | fittopar (const FVector< TPAR, NPAR > &fitpar, const typename FMatrix< TPAR, NPAR, NPAR >::TraceVector &trace) |
Convert internal fit parameters to external representation. More... | |
static FVector< TPAR, NPAR > | covtoerr (const typename FMatrix< TPAR, NPAR, NPAR >::TraceVector &trace, const FVector< TPAR, NPAR > &fitpar) |
Calculate external error in parameters from internal covariance matrix. More... | |
Protected Attributes | |
MArray< TDAT, NDIM > | data_ |
TDAT | nan_data_ |
MArray< TDAT, NDIM > | error2_ |
int | ndof_ |
Approximation of a Gaussian function via Marquardt-Levenberg algorithm.
|
inlineinherited |
Set data, error and NaN value.
Referenced by PolyGaussian< TPAR, TDAT, 7, 2 >::covtoerr(), Gaussian< TPAR, TDAT, 5, 2 >::setData(), Gaussian< TPAR, TDAT, 3, 2 >::setData(), and PolyGaussian< TPAR, TDAT, 5, 2 >::setData().
|
inlineinherited |
Free data and error.
Referenced by Gaussian< TPAR, TDAT, 5, 2 >::freeData(), Gaussian< TPAR, TDAT, 3, 2 >::freeData(), and PolyGaussian< TPAR, TDAT, 5, 2 >::freeData().
|
inlinestaticinherited |
Convert external fit parameters to internal representation.
Referenced by Gaussian< TPAR, TDAT, 7, 2 >::fill(), Gaussian< TPAR, TDAT, 5, 2 >::fill(), PolyGaussian< TPAR, TDAT, 5, 2 >::fill(), Gaussian< TPAR, TDAT, 5, 2 >::fillExp(), and PolyGaussian< TPAR, TDAT, 5, 2 >::fillExp().
|
inlinestaticinherited |
Convert internal fit parameters to external representation.
Referenced by PolyGaussian< TPAR, TDAT, 7, 2 >::covtoerr(), and PolyGaussian< TPAR, TDAT, 5, 2 >::covtoerr().
|
inlinestaticinherited |
Calculate external error in parameters from internal covariance matrix.
|
inlineinherited |
Calculate actual (if better than old one) and Hessematrix.
|
inlineinherited |
Return degrees of freedom for fit.
|
protectedinherited |
Referenced by PolyGaussian< TPAR, TDAT, 7, 2 >::covtoerr(), PolyGaussian< TPAR, TDAT, 5, 2 >::covtoerr(), MRQFunction< TPAR, TDAT, 8, 2 >::freeData(), MRQFunction< TPAR, TDAT, 8, 2 >::marquardtCoefficients(), Gaussian< TPAR, TDAT, 7, 2 >::marquardtCoefficients(), Gaussian< TPAR, TDAT, 5, 2 >::marquardtCoefficients(), Gaussian< TPAR, TDAT, 3, 2 >::marquardtCoefficients(), PolyGaussian< TPAR, TDAT, 7, 2 >::marquardtCoefficients(), PolyGaussian< TPAR, TDAT, 5, 2 >::marquardtCoefficients(), Moffat< TPAR, TDAT, 10, 2 >::marquardtCoefficients(), Moffat< TPAR, TDAT, 8, 2 >::marquardtCoefficients(), MRQFunction< TPAR, TDAT, 8, 2 >::setData(), Gaussian< TPAR, TDAT, 5, 2 >::setData(), Gaussian< TPAR, TDAT, 3, 2 >::setData(), and PolyGaussian< TPAR, TDAT, 5, 2 >::setData().
|
protectedinherited |
Referenced by PolyGaussian< TPAR, TDAT, 7, 2 >::covtoerr(), PolyGaussian< TPAR, TDAT, 5, 2 >::covtoerr(), MRQFunction< TPAR, TDAT, 8, 2 >::marquardtCoefficients(), Gaussian< TPAR, TDAT, 7, 2 >::marquardtCoefficients(), Gaussian< TPAR, TDAT, 5, 2 >::marquardtCoefficients(), Gaussian< TPAR, TDAT, 3, 2 >::marquardtCoefficients(), PolyGaussian< TPAR, TDAT, 7, 2 >::marquardtCoefficients(), PolyGaussian< TPAR, TDAT, 5, 2 >::marquardtCoefficients(), Moffat< TPAR, TDAT, 10, 2 >::marquardtCoefficients(), Moffat< TPAR, TDAT, 8, 2 >::marquardtCoefficients(), and MRQFunction< TPAR, TDAT, 8, 2 >::setData().
|
protectedinherited |
Referenced by PolyGaussian< TPAR, TDAT, 7, 2 >::covtoerr(), PolyGaussian< TPAR, TDAT, 5, 2 >::covtoerr(), MRQFunction< TPAR, TDAT, 8, 2 >::freeData(), MRQFunction< TPAR, TDAT, 8, 2 >::marquardtCoefficients(), Gaussian< TPAR, TDAT, 7, 2 >::marquardtCoefficients(), Gaussian< TPAR, TDAT, 5, 2 >::marquardtCoefficients(), Gaussian< TPAR, TDAT, 3, 2 >::marquardtCoefficients(), PolyGaussian< TPAR, TDAT, 7, 2 >::marquardtCoefficients(), PolyGaussian< TPAR, TDAT, 5, 2 >::marquardtCoefficients(), Moffat< TPAR, TDAT, 10, 2 >::marquardtCoefficients(), Moffat< TPAR, TDAT, 8, 2 >::marquardtCoefficients(), and MRQFunction< TPAR, TDAT, 8, 2 >::setData().
|
protectedinherited |
Referenced by MRQFunction< TPAR, TDAT, 8, 2 >::getNdof(), and MRQFunction< TPAR, TDAT, 8, 2 >::setData().