Code to interpolate data using the bspline::Spline.
More...
|
enum class | Node { FIRST
, LAST
} |
| Node marker for boundary conditions. More...
|
|
|
template<typename T , size_t order, class Solver > |
bspline::Spline< T, order > | interpolate (Support< T > x, const std::vector< T > &y, const std::array< Boundary< T >, order - 1 > &boundaries=internal::defaultBoundaries< T, order >()) |
| Interpolation using generic Solver.
|
|
template<size_t order> |
bspline::Spline< double, order > | interpolateUsingArmadillo (Support< double > x, const std::vector< double > &y, const std::array< Boundary< double >, order - 1 > &boundaries=internal::defaultBoundaries< double, order >()) |
| Interpolation using armadillo Solver.
|
|
template<typename T , size_t order> |
bspline::Spline< T, order > | interpolateUsingEigen (Support< T > x, const std::vector< T > &y, const std::array< Boundary< T >, order - 1 > &boundaries=internal::defaultBoundaries< T, order >()) |
| Interpolation using eigen solver.
|
|
Code to interpolate data using the bspline::Spline.
◆ Node
Node marker for boundary conditions.
Represents either the first or last node of the interpolation grid. Used to define boundary conditions.
◆ interpolate()
Interpolation using generic Solver.
Interpolates the data given by x and y with a spline of order order. order-1 additional conditions are needed for a well defined problem. These can be supplied by fixing derivatives on the first and last node.
- Parameters
-
x | Data on the abscissa. |
y | Data on the ordinate. |
boundaries | Boundary conditions. |
- Template Parameters
-
T | Datatype of the spline and data. |
order | Order of the spline. |
Solver | Class Wrapping the linear algebra routines. |
- Exceptions
-
BSplineException | If the number of values on the abscissa and ordinate differ. |
BSplineException | If less than two data points are provided. |
- Returns
- The spline interpolating the input data.
◆ interpolateUsingArmadillo()
Interpolation using armadillo Solver.
Wrapper method around interpolate() using armadillo for the linear algebra routines. Supports only double precision. This method will only be activated if the macro BSPLINE_INTERPOLATION_USE_ARMADILLO is defined.
- Parameters
-
x | Data on the abscissa. The grid points must be in (steadily) increasing order. |
y | Data on the ordinate. |
boundaries | Boundary conditions. |
- Template Parameters
-
order | Order of the spline. |
- Exceptions
-
BSplineException | If the number of values on the abscissa and ordinate differ. |
BSplineException | If less than two data points are provided. |
- Returns
- The spline interpolating the input data.
◆ interpolateUsingEigen()
Interpolation using eigen solver.
Wrapper method around interpolate() using eigen for the linear algebra routines. This method will only be activated if the macro BSPLINE_INTERPOLATION_USE_EIGEN is defined.
- Parameters
-
x | Data on the abscissa. The grid points must be in (steadily) increasing order. |
y | Data on the ordinate. |
boundaries | Boundary conditions. |
- Template Parameters
-
T | Datatype of the spline and data. |
order | Order of the spline. |
- Exceptions
-
BSplineException | If the number of values on the abscissa and ordinate differ. |
BSplineException | If less than two data points are provided. |
- Returns
- The spline interpolating the input data.