27 std::vector<Real> criticalPoints,
28 const bool avoidCriticalPoints)
30 criticalPoints_(
std::move(criticalPoints)),
31 eps_(avoidCriticalPoints ? (1.0 +
QL_EPSILON) : 1.0) {
34 std::vector<Real>::const_iterator end =
std::vector< Real > criticalPoints_
PiecewiseIntegral(ext::shared_ptr< Integrator > integrator, std::vector< Real > criticalPoints, bool avoidCriticalPoints=true)
bool close_enough(const Quantity &m1, const Quantity &m2, Size n)
Integral of a piecewise well behaved function using a custom integrator for the pieces....