ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM > Class Template Reference
[Non Linear Least Squares Fitting]

Mother (and example) for function class suitable for ltl::Marquardt. More...

Inherited by ltl::Gaussian< TPAR, TDAT, NPAR, NDIM >, ltl::Moffat< TPAR, TDAT, NPAR, NDIM >, ltl::Moffat< TPAR, TDAT, 10, 2 >, ltl::Moffat< TPAR, TDAT, 8, 2 >, ltl::PolyGaussian< TPAR, TDAT, NPAR, NDIM >, and ltl::PolyGaussian< TPAR, TDAT, 7, 2 >.

List of all members.

Public Member Functions

Static Public Member Functions

Protected Attributes


Detailed Description

template<class TPAR, class TDAT, int NPAR, int NDIM>
class ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >

Mother (and example) for function class suitable for ltl::Marquardt.


Member Function Documentation

template<class TPAR, class TDAT, int NPAR, int NDIM>
void ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::setData ( const MArray< TDAT, NDIM > &  indata,
const TDAT  in_nan,
const MArray< TDAT, NDIM > &  inerror2 
) [inline]

Set data, error and NaN value.

template<class TPAR, class TDAT, int NPAR, int NDIM>
void ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::freeData (  )  [inline]
template<class TPAR, class TDAT, int NPAR, int NDIM>
static FVector<TPAR, NPAR> ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::partofit ( const FVector< TPAR, NPAR > &  parameter  )  [inline, static]

Convert external fit parameters to internal representation.

template<class TPAR, class TDAT, int NPAR, int NDIM>
static FVector<TPAR, NPAR> ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::fittopar ( const FVector< TPAR, NPAR > &  fitpar,
const typename FMatrix< TPAR, NPAR, NPAR >::TraceVector &  trace 
) [inline, static]

Convert internal fit parameters to external representation.

template<class TPAR, class TDAT, int NPAR, int NDIM>
static FVector<TPAR, NPAR> ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::covtoerr ( const typename FMatrix< TPAR, NPAR, NPAR >::TraceVector &  trace,
const FVector< TPAR, NPAR > &  fitpar 
) [inline, static]

Calculate external error in parameters from internal covariance matrix.

template<class TPAR, class TDAT, int NPAR, int NDIM>
TPAR ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::marquardtCoefficients ( const FVector< TPAR, NPAR > &restrict_  parameter,
const TPAR  chisquare_limit,
FMatrix< TPAR, NPAR, NPAR > &restrict_  a,
FVector< TPAR, NPAR > &restrict_  b 
) const [inline]

Calculate actual $\chi^2$ (if better than old one) and Hessematrix.

template<class TPAR, class TDAT, int NPAR, int NDIM>
size_t ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::getNdof (  )  const [inline]

Return degrees of freedom for fit.


Member Data Documentation

template<class TPAR, class TDAT, int NPAR, int NDIM>
MArray<TDAT, NDIM> ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::data_ [protected]
template<class TPAR, class TDAT, int NPAR, int NDIM>
TDAT ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::nan_data_ [protected]
template<class TPAR, class TDAT, int NPAR, int NDIM>
MArray<TDAT, NDIM> ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::error2_ [protected]
template<class TPAR, class TDAT, int NPAR, int NDIM>
int ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::ndof_ [protected]

Generated on 19 Feb 2015 for LTL by  doxygen 1.6.1