26#include <ql/math/interpolation.hpp>
45 Real
xMin()
const override {
return -QL_MAX_REAL; }
46 Real
xMax()
const override {
return QL_MAX_REAL; }
47 std::vector<Real>
xValues()
const override {
return std::vector<Real>(1, 0.0); }
48 std::vector<Real>
yValues()
const override {
return std::vector<Real>(1,
y_); }
49 bool isInRange(Real)
const override {
return true; }
50 Real
value(Real)
const override {
return y_; }
Constant-interpolation factory and traits
QuantLib::Interpolation interpolate(const Real &y) const
static const QuantLib::Size requiredPoints
ConstantInterpolation(const Real &y)
bool isInRange(Real) const override
Real derivative(Real) const override
Real secondDerivative(Real) const override
Real value(Real) const override
ConstantInterpolationImpl(const Real &y)
Real xMax() const override
std::vector< Real > xValues() const override
std::vector< Real > yValues() const override
Real primitive(Real x) const override
Real xMin() const override