1 #ifndef MHO_ApMeanIntegrator_HH__
2 #define MHO_ApMeanIntegrator_HH__
36 int Initialize(
int n,
const double* coords,
const double* val1,
const double* val2);
55 int Integrate(
double start,
double stop,
int* nstart,
double* result1,
double* result2);
59 std::vector< double > x_;
60 std::vector< double > y1_;
61 std::vector< double > y2_;
Trapezoidal integrator over tabular data with linear interpolation.
Definition: MHO_ApMeanIntegrator.hh:22
int Integrate(double start, double stop, int *nstart, double *result1, double *result2)
Compute the average of val1 and val2 over [start, stop].
Definition: MHO_ApMeanIntegrator.cc:65
int Initialize(int n, const double *coords, const double *val1, const double *val2)
Load tabular data. Must be called before Integrate().
Definition: MHO_ApMeanIntegrator.cc:14
MHO_ApMeanIntegrator()
Definition: MHO_ApMeanIntegrator.cc:8
~MHO_ApMeanIntegrator()
Definition: MHO_ApMeanIntegrator.cc:11
Definition: MHO_AdhocFlagging.hh:18