Jpp  16.0.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
JFIT::JAbstractMinimiser< JModel_t > Struct Template Reference

Abstract minimiser. More...

#include <JRegressor.hh>

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

Public Types

typedef double result_type
 

Public Member Functions

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

Public Attributes

JModel_t value
 model value More...
 

Static Public Attributes

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

Detailed Description

template<class JModel_t>
struct 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

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

Definition at line 28 of file JRegressor.hh.

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 33 of file JRegressor.hh.

34  {}

Member Function Documentation

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 46 of file JRegressor.hh.

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

Member Data Documentation

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

model value

Definition at line 57 of file JRegressor.hh.

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 struct was generated from the following file: