Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
interpolation.h File Reference
#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"
Include dependency graph for interpolation.h:
This graph shows which files directly or indirectly include this file:

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< FunctionEuclid::MathUtils::interpolate (const std::vector< double > &x, const std::vector< double > &y, InterpolationType type, bool extrapolate=false)
 
ELEMENTS_API std::unique_ptr< FunctionEuclid::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
 

Detailed Description

Date
February 20, 2014
Author
Nikolaos Apostolakos

Definition in file interpolation.h.

Macro Definition Documentation

◆ INTERPOLATION_IMPL

#define INTERPOLATION_IMPL

Definition at line 135 of file interpolation.h.