Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
JFIT::JAbstractRegressor< JModel_t, JMinimiser_t > Struct Template Reference

Abstract class for global fit method. More...

#include <JRegressor.hh>

Inheritance diagram for JFIT::JAbstractRegressor< JModel_t, JMinimiser_t >:

Public Types

typedef JMinimiser_t< JModel_t > minimiser_type
 
typedef JRegressor< JModel_t,
JMinimiser_t > 
regressor_type
 

Public Member Functions

template<class T >
double operator() (const JModel_t &value, T __begin, T __end)
 Global fit. More...
 
template<class T1 , class T2 >
double operator() (const JModel_t &value, T1 __begin1, T1 __end1, T2 __begin2, T2 __end2)
 Global fit. More...
 

Detailed Description

template<class JModel_t, template< class > class JMinimiser_t = JAbstractMinimiser>
struct JFIT::JAbstractRegressor< JModel_t, JMinimiser_t >

Abstract class for global fit method.

Definition at line 73 of file JRegressor.hh.

Member Typedef Documentation

template<class JModel_t, template< class > class JMinimiser_t = JAbstractMinimiser>
typedef JMinimiser_t<JModel_t> JFIT::JAbstractRegressor< JModel_t, JMinimiser_t >::minimiser_type

Definition at line 76 of file JRegressor.hh.

template<class JModel_t, template< class > class JMinimiser_t = JAbstractMinimiser>
typedef JRegressor<JModel_t, JMinimiser_t> JFIT::JAbstractRegressor< JModel_t, JMinimiser_t >::regressor_type

Definition at line 77 of file JRegressor.hh.

Member Function Documentation

template<class JModel_t, template< class > class JMinimiser_t = JAbstractMinimiser>
template<class T >
double JFIT::JAbstractRegressor< JModel_t, JMinimiser_t >::operator() ( const JModel_t &  value,
__begin,
__end 
)
inline

Global fit.

Parameters
valuestart value
__beginbegin of data set
__endend of data set
Returns
chi2

Definition at line 89 of file JRegressor.hh.

90  {
91  static_cast<minimiser_type&>(*this).value = value;
92 
93  return static_cast<minimiser_type&>(*this)(static_cast<regressor_type&>(*this), __begin, __end);
94  }
JMinimiser_t< JModel_t > minimiser_type
Definition: JRegressor.hh:76
JRegressor< JModel_t, JMinimiser_t > regressor_type
Definition: JRegressor.hh:77
template<class JModel_t, template< class > class JMinimiser_t = JAbstractMinimiser>
template<class T1 , class T2 >
double JFIT::JAbstractRegressor< JModel_t, JMinimiser_t >::operator() ( const JModel_t &  value,
T1  __begin1,
T1  __end1,
T2  __begin2,
T2  __end2 
)
inline

Global fit.

Parameters
valuestart value
__begin1begin of first data set
__end1end of first data set
__begin2begin of second data set
__end2end of second data set
Returns
chi2

Definition at line 108 of file JRegressor.hh.

111  {
112  static_cast<minimiser_type&>(*this).value = value;
113 
114  return static_cast<minimiser_type&>(*this)(static_cast<regressor_type&>(*this), __begin1, __end1, __begin2, __end2);
115  }
JMinimiser_t< JModel_t > minimiser_type
Definition: JRegressor.hh:76
JRegressor< JModel_t, JMinimiser_t > regressor_type
Definition: JRegressor.hh:77

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