31 double ( *theFunction )(
double,
const std::vector<double>&,
const std::vector<double>& ),
33 const std::vector<double>& coeffs2 )
35 , _myFunction( theFunction )
37 , _coeffs2( coeffs2 ) {}
42 return _myFunction( x, _coeffs1, _coeffs2 );
46 if ( vect == 1 ) _coeffs1[which] =
value;
47 else if ( vect == 2 ) _coeffs2[which] =
value;
51 if ( vect == 1 )
return _coeffs1[which];
52 else if ( vect == 2 )
return _coeffs2[which];
EvtItgAbsFunction(double lowerRange, double upperRange)
double lowerRange() const
double upperRange() const
virtual double value(double x) const
virtual double getCoeff(int, int)
virtual ~EvtItgTwoCoeffFcn()
virtual double myFunction(double x) const
virtual void setCoeff(int, int, double)
EvtItgTwoCoeffFcn(double(*theFunction)(double, const std::vector< double > &, const std::vector< double > &), double lowerRange, double upperRange, const std::vector< double > &coeffs1, const std::vector< double > &coeffs2)