25 #ifndef INTERPOLATION_H
26 #define INTERPOLATION_H
78 bool extrapolate =
false);
85 template <std::
size_t N>
106 template <std::
size_t N>
109 bool extrapolate =
false);
125 bool extrapolate =
false);
130 bool extrapolate) noexcept;
135 #define INTERPOLATION_IMPL
137 #undef INTERPOLATION_IMPL
ELEMENTS_API double simple_interpolation(double x, const std::vector< double > &xp, const std::vector< double > &yp, bool extrapolate=false)
std::unique_ptr< NAryFunction< N > > interpn(const Coordinates< N > &grid, const NdArray::NdArray< double > &values, InterpolationType type, bool extrapolate)
Exception(ExitCode e=ExitCode::NOT_OK)
This module provides an interface for accessing two dimensional datasets (pairs of (X...
InterpolationType
Enumeration of the different supported interpolation types.
ELEMENTS_API std::unique_ptr< Function > interpolate(const std::vector< double > &x, const std::vector< double > &y, InterpolationType type, bool extrapolate=false)