ltl::Function< TPAR, TDAT, NPAR, NDIM > Class Template Reference
[Non Linear Least Squares Fitting]
Mother (and example) for function class suitable for ltl::Marquardt.
More...
#include <mrqfuncs.h>
Inheritance diagram for ltl::Function< TPAR, TDAT, NPAR, NDIM >:
List of all members.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.
-
void freeData ()
- Free data and error.
-
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
(if better than old one) and Hessematrix.
-
size_t getNdof () const
- Return degrees of freedom for fit.
Static Public Member Functions
-
FVector< TPAR, NPAR > partofit (const FVector< TPAR, NPAR > ¶meter)
- Convert external fit parameters to internal representation.
-
FVector< TPAR, NPAR > fittopar (const FVector< TPAR, NPAR > &fitpar, const typename FMatrix< TPAR, NPAR, NPAR >::TraceVector &trace)
- Convert internal fit parameters to external representation.
-
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.
Protected Attributes
-
MArray< TDAT, NDIM > data_
-
TDAT nan_data_
-
MArray< TDAT, NDIM > error2_
-
int ndof_
Detailed Description
template<class TPAR, class TDAT, int NPAR, int NDIM>
class ltl::Function< TPAR, TDAT, NPAR, NDIM >
Mother (and example) for function class suitable for ltl::Marquardt.
The documentation for this class was generated from the following file:
Generated on Fri Dec 24 13:32:04 2004 for LTL by
1.3.4