Alexandria 2.28.2
SDC-CH common library for the Euclid project
|
#include <array>
#include <memory>
#include <vector>
#include "ElementsKernel/Exception.h"
#include "ElementsKernel/Export.h"
#include "MathUtils/function/Function.h"
#include "NdArray/NdArray.h"
#include "XYDataset/XYDataset.h"
#include "MathUtils/interpolation/_impl/interpolation.icpp"
Go to the source code of this file.
Classes | |
struct | Euclid::MathUtils::InterpolationException |
Namespaces | |
namespace | Euclid |
namespace | Euclid::MathUtils |
Macros | |
#define | INTERPOLATION_IMPL |
Typedefs | |
template<std::size_t N> | |
using | Euclid::MathUtils::Coordinates = std::array< std::vector< double >, N > |
Used to pass the grid coordinates to interpn. Internally will make a copy of the required values. | |
Enumerations | |
enum class | Euclid::MathUtils::InterpolationType { Euclid::MathUtils::LINEAR , Euclid::MathUtils::CUBIC_SPLINE } |
Enumeration of the different supported interpolation types. More... | |
Functions | |
ELEMENTS_API std::unique_ptr< Function > | Euclid::MathUtils::interpolate (const std::vector< double > &x, const std::vector< double > &y, InterpolationType type, bool extrapolate=false) |
ELEMENTS_API std::unique_ptr< Function > | Euclid::MathUtils::interpolate (const Euclid::XYDataset::XYDataset &dataset, InterpolationType type, bool extrapolate=false) |
template<std::size_t N> | |
ELEMENTS_API std::unique_ptr< NAryFunction< N > > | Euclid::MathUtils::interpn (const Coordinates< N > &grid, const NdArray::NdArray< double > &values, InterpolationType type, bool extrapolate=false) |
ELEMENTS_API double | Euclid::MathUtils::simple_interpolation (double x, const std::vector< double > &xp, const std::vector< double > &yp, bool extrapolate=false) |
ELEMENTS_API double | Euclid::MathUtils::simple_interpolation (double x, double x0, double x1, double y0, double y1, bool extrapolate) noexcept |
Definition in file interpolation.h.
#define INTERPOLATION_IMPL |
Definition at line 135 of file interpolation.h.