LTL  2.0.x
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ltl::PolyGaussian< TPAR, TDAT, 5, 2 > Class Template Reference

Inherits ltl::MRQFunction< TPAR, TDAT, 5, 2 >.

Public Member Functions

 PolyGaussian ()
 
void setData (const MArray< TDAT, 2 > &indata, const TDAT in_nan, const MArray< TDAT, 2 > &inerror2)
 
void freeData ()
 
FVector< TPAR, 5 > covtoerr (const typename FMatrix< TPAR, 5, 5 >::TraceVector &trace, const FVector< TPAR, 5 > &fitpar)
 
TPAR marquardtCoefficients (const FVector< TPAR, 5 > &restrict_ parameter, const TPAR chisquare_limit, FMatrix< TPAR, 5, 5 > &restrict_ a, FVector< TPAR, 5 > &restrict_ b) const
 
void setData (const MArray< TDAT, NDIM > &indata, const TDAT in_nan, const MArray< TDAT, NDIM > &inerror2)
 Set data, error and NaN value. 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 $\chi^2$ (if better than old one) and Hessematrix. More...
 
size_t getNdof () const
 Return degrees of freedom for fit. More...
 

Static Public Member Functions

static FVector< TPAR, 5 > partofit (const FVector< TPAR, 5 > &parameter)
 
static FVector< TPAR, 5 > fittopar (const FVector< TPAR, 5 > &fitpar, const typename FMatrix< TPAR, 5, 5 >::TraceVector &trace)
 
static MArray< TDAT, 2 > & fill (const FVector< TPAR, 5 > &restrict_ invalue, const int x, const int y, MArray< TDAT, 2 > &a)
 
static MArray< TDAT, 2 > & fillExp (const FVector< TPAR, 5 > &restrict_ invalue, const int x, const int y, MArray< TDAT, 2 > &a)
 
static FVector< TPAR, NPAR > partofit (const FVector< TPAR, NPAR > &parameter)
 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_
 

Constructor & Destructor Documentation

template<class TPAR , class TDAT >
ltl::PolyGaussian< TPAR, TDAT, 5, 2 >::PolyGaussian ( )
inline

Member Function Documentation

template<class TPAR , class TDAT >
void ltl::PolyGaussian< TPAR, TDAT, 5, 2 >::setData ( const MArray< TDAT, 2 > &  indata,
const TDAT  in_nan,
const MArray< TDAT, 2 > &  inerror2 
)
inline
template<class TPAR , class TDAT >
void ltl::PolyGaussian< TPAR, TDAT, 5, 2 >::freeData ( )
inline
template<class TPAR , class TDAT >
static FVector<TPAR, 5> ltl::PolyGaussian< TPAR, TDAT, 5, 2 >::partofit ( const FVector< TPAR, 5 > &  parameter)
inlinestatic
template<class TPAR , class TDAT >
static FVector<TPAR, 5> ltl::PolyGaussian< TPAR, TDAT, 5, 2 >::fittopar ( const FVector< TPAR, 5 > &  fitpar,
const typename FMatrix< TPAR, 5, 5 >::TraceVector &  trace 
)
inlinestatic
template<class TPAR , class TDAT >
FVector<TPAR, 5> ltl::PolyGaussian< TPAR, TDAT, 5, 2 >::covtoerr ( const typename FMatrix< TPAR, 5, 5 >::TraceVector &  trace,
const FVector< TPAR, 5 > &  fitpar 
)
inline
template<class TPAR , class TDAT >
static MArray<TDAT, 2>& ltl::PolyGaussian< TPAR, TDAT, 5, 2 >::fill ( const FVector< TPAR, 5 > &restrict_  invalue,
const int  x,
const int  y,
MArray< TDAT, 2 > &  a 
)
inlinestatic
template<class TPAR , class TDAT >
static MArray<TDAT, 2>& ltl::PolyGaussian< TPAR, TDAT, 5, 2 >::fillExp ( const FVector< TPAR, 5 > &restrict_  invalue,
const int  x,
const int  y,
MArray< TDAT, 2 > &  a 
)
inlinestatic
template<class TPAR , class TDAT >
TPAR ltl::PolyGaussian< TPAR, TDAT, 5, 2 >::marquardtCoefficients ( const FVector< TPAR, 5 > &restrict_  parameter,
const TPAR  chisquare_limit,
FMatrix< TPAR, 5, 5 > &restrict_  a,
FVector< TPAR, 5 > &restrict_  b 
) const
inline
void ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::setData ( const MArray< TDAT, NDIM > &  indata,
const TDAT  in_nan,
const MArray< TDAT, NDIM > &  inerror2 
)
inlineinherited

Set data, error and NaN value.

static FVector<TPAR, NPAR> ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::partofit ( const FVector< TPAR, NPAR > &  parameter)
inlinestaticinherited

Convert external fit parameters to internal representation.

static FVector<TPAR, NPAR> ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::fittopar ( const FVector< TPAR, NPAR > &  fitpar,
const typename FMatrix< TPAR, NPAR, NPAR >::TraceVector &  trace 
)
inlinestaticinherited

Convert internal fit parameters to external representation.

static FVector<TPAR, NPAR> ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::covtoerr ( const typename FMatrix< TPAR, NPAR, NPAR >::TraceVector &  trace,
const FVector< TPAR, NPAR > &  fitpar 
)
inlinestaticinherited

Calculate external error in parameters from internal covariance matrix.

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
inlineinherited

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

size_t ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::getNdof ( ) const
inlineinherited

Return degrees of freedom for fit.

Member Data Documentation

MArray<TDAT, NDIM> ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::data_
protectedinherited
TDAT ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::nan_data_
protectedinherited
MArray<TDAT, NDIM> ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::error2_
protectedinherited
int ltl::MRQFunction< TPAR, TDAT, NPAR, NDIM >::ndof_
protectedinherited