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