1 #ifndef __JFIT__JREGRESSOR__
2 #define __JFIT__JREGRESSOR__
13 namespace JPP {
using namespace JFIT; }
24 template<
class JModel_t>
26 public JMessage< JAbstractMinimiser<JModel_t> >
45 template<
class JFunction_t,
class T>
50 for (T i = __begin; i != __end; ++i) {
51 chi2 += fit(
value, *i);
76 public JMinimiser_t<JModel_t>
94 static_cast<minimiser_type&>(*this).value = value;
96 return static_cast<minimiser_type&>(*
this)(static_cast<regressor_type&>(*
this), __begin, __end);
110 template<
class T1,
class T2>
112 T1 __begin1, T1 __end1,
113 T2 __begin2, T2 __end2)
115 static_cast<minimiser_type&>(*this).value = value;
117 return static_cast<minimiser_type&>(*
this)(static_cast<regressor_type&>(*
this), __begin1, __end1, __begin2, __end2);