26#include <ql/math/interpolations/flatextrapolation2d.hpp>
27#include <ql/math/interpolations/bicubicsplineinterpolation.hpp>
28#include <ql/math/interpolations/bilinearinterpolation.hpp>
30#include <boost/make_shared.hpp>
38 template <
class I1,
class I2,
class M>
39 Interpolation2D
interpolate(
const I1& xBegin,
const I1& xEnd,
const I2& yBegin,
const I2& yEnd,
const M& z)
const {
40 return FlatExtrapolator2D(QuantLib::ext::make_shared<BilinearInterpolation>(xBegin, xEnd, yBegin, yEnd, z));
48 template <
class I1,
class I2,
class M>
49 Interpolation2D
interpolate(
const I1& xBegin,
const I1& xEnd,
const I2& yBegin,
const I2& yEnd,
const M& z)
const {
50 return FlatExtrapolator2D(QuantLib::ext::make_shared<BicubicSpline>(xBegin, xEnd, yBegin, yEnd, z));
BiCubicSpline-interpolation and flat extrapolation factory
Interpolation2D interpolate(const I1 &xBegin, const I1 &xEnd, const I2 &yBegin, const I2 &yEnd, const M &z) const
BiLinear-interpolation and flat extrapolation factory
Interpolation2D interpolate(const I1 &xBegin, const I1 &xEnd, const I2 &yBegin, const I2 &yEnd, const M &z) const