25 #ifndef MATHUTILS_PIECEWISE_H
26 #define MATHUTILS_PIECEWISE_H
78 double operator()(
const double)
const override;
91 double integrate(
const double x1,
const double x2)
const override;
std::vector< double > m_knots
A vector where the knots are kept.
Interface representing an integrable function.
ELEMENTS_API double integrate(const Function &function, const double min, const double max, std::unique_ptr< NumericalIntegrationScheme > numericalIntegrationScheme=nullptr)
std::vector< std::shared_ptr< Function > > m_functions
A vector where the sub-functions are kept.
Represents a piecewise function.