29EvtItgFourCoeffFcn::EvtItgFourCoeffFcn(
double (*theFunction)(
double,
const std::vector<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,
const std::vector<double> &coeffs4):
31 _myFunction(theFunction),
44 return _myFunction(
x, _coeffs1, _coeffs2, _coeffs3, _coeffs4);
50 if (vect == 1) _coeffs1[which] =
value;
51 else if (vect == 2) _coeffs2[which] =
value;
52 else if (vect == 3) _coeffs3[which] =
value;
53 else if (vect == 4) _coeffs4[which] =
value;
59 if (vect == 1)
return _coeffs1[which];
60 else if (vect == 2)
return _coeffs2[which];
61 else if (vect == 3)
return _coeffs3[which];
62 else if (vect == 4)
return _coeffs4[which];
virtual double value(double x) const
virtual ~EvtItgFourCoeffFcn()
virtual double myFunction(double x) const
virtual void setCoeff(int, int, double)
EvtItgFourCoeffFcn(double(*theFunction)(double, const std::vector< 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, const std::vector< double > &coeffs4)
virtual double getCoeff(int, int)