31 double ( *theFunction )(
double,
const std::vector<double>&,
const std::vector<double>&,
32 const std::vector<double>& ),
34 const std::vector<double>& coeffs2,
const std::vector<double>& coeffs3 )
36 , _myFunction( theFunction )
39 , _coeffs3( coeffs3 ) {}
44 return _myFunction( x, _coeffs1, _coeffs2, _coeffs3 );
48 if ( vect == 1 ) _coeffs1[which] =
value;
49 else if ( vect == 2 ) _coeffs2[which] =
value;
50 else if ( vect == 3 ) _coeffs3[which] =
value;
54 if ( vect == 1 )
return _coeffs1[which];
55 else if ( vect == 2 )
return _coeffs2[which];
56 else if ( vect == 3 )
return _coeffs3[which];
EvtItgAbsFunction(double lowerRange, double upperRange)
double lowerRange() const
double upperRange() const
virtual double value(double x) const
EvtItgThreeCoeffFcn(double(*theFunction)(double, const std::vector< double > &, const std::vector< double > &, const std::vector< double > &), double lowerRange, double upperRange, const std::vector< double > &coeffs1, const std::vector< double > &coeffs2, const std::vector< double > &coeffs3)
virtual void setCoeff(int, int, double)
virtual ~EvtItgThreeCoeffFcn()
virtual double getCoeff(int, int)
virtual double myFunction(double x) const