Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JFIT::JAbstractMinimiser< JModel_t > Class Template Reference

Abstract minimiser. More...

#include <JRegressor.hh>

Inheritance diagram for JFIT::JAbstractMinimiser< JModel_t >:
JEEP::JMessage< T > JACOUSTICS::JKatoomba< JAbstractMinimiser > JFIT::JAbstractRegressor< JModel_t, JMinimiser_t >

Public Types

typedef double result_type
 

Public Member Functions

 JAbstractMinimiser ()
 Default constructor.
 
template<class JFunction_t , class T >
result_type operator() (const JFunction_t &fit, T __begin, T __end)
 Get chi2.
 

Public Attributes

JModel_t value
 model value
 

Static Public Attributes

static int debug = 0
 debug level (default is off).
 

Detailed Description

template<class JModel_t>
class JFIT::JAbstractMinimiser< JModel_t >

Abstract minimiser.

This "minimiser" can be used to determine the chi2 of the data for a given model value.

Definition at line 25 of file JRegressor.hh.

Member Typedef Documentation

◆ result_type

template<class JModel_t >
double JFIT::JAbstractMinimiser< JModel_t >::result_type

Definition at line 30 of file JRegressor.hh.

Constructor & Destructor Documentation

◆ JAbstractMinimiser()

template<class JModel_t >
JFIT::JAbstractMinimiser< JModel_t >::JAbstractMinimiser ( )
inline

Default constructor.

Definition at line 35 of file JRegressor.hh.

36 {}

Member Function Documentation

◆ operator()()

template<class JModel_t >
template<class JFunction_t , class T >
result_type JFIT::JAbstractMinimiser< JModel_t >::operator() ( const JFunction_t & fit,
T __begin,
T __end )
inline

Get chi2.

Parameters
fitfit function
__beginbegin of data
__endend of data
Returns
chi2

Definition at line 48 of file JRegressor.hh.

49 {
50 double chi2 = 0.0;
51
52 for (T i = __begin; i != __end; ++i) {
53 chi2 += fit(value, *i);
54 }
55
56 return chi2;
57 }
JModel_t value
model value
Definition JRegressor.hh:59

Member Data Documentation

◆ value

template<class JModel_t >
JModel_t JFIT::JAbstractMinimiser< JModel_t >::value

model value

Definition at line 59 of file JRegressor.hh.

◆ debug

template<class T >
int JEEP::JMessage< T >::debug = 0
staticinherited

debug level (default is off).

Definition at line 45 of file JMessage.hh.


The documentation for this class was generated from the following file: