#include <Interpolate.hpp>
|
| | Interpolator ()=default |
| | Default constructor (invalid state).
|
| | Interpolator (const std::vector< NumericVector > &points, const NumericVector &values, InterpolationMethod method=InterpolationMethod::Linear) |
| | Construct N-dimensional interpolator.
|
| | Interpolator (const NumericVector &x, const NumericVector &y, InterpolationMethod method=InterpolationMethod::Linear) |
| | Construct 1D interpolator (convenience overload).
|
| | Interpolator (const std::vector< NumericVector > &points, const NumericVector &values, InterpolationMethod method, ExtrapolationConfig extrap) |
| | Construct N-dimensional interpolator with extrapolation config.
|
| | Interpolator (const NumericVector &x, const NumericVector &y, InterpolationMethod method, ExtrapolationConfig extrap) |
| int | dims () const |
| | Get number of dimensions.
|
| InterpolationMethod | method () const |
| | Get the interpolation method.
|
| bool | valid () const |
| | Check if interpolator is valid (initialized).
|
| template<JanusScalar Scalar> |
| Scalar | operator() (const Scalar &query) const |
| | Evaluate interpolant at a scalar point (1D only).
|
| template<JanusScalar Scalar> |
| Scalar | operator() (const JanusVector< Scalar > &query) const |
| | Evaluate N-D interpolant at a single point.
|
| template<typename Derived> |
| auto | operator() (const Eigen::MatrixBase< Derived > &queries) const -> JanusVector< typename Derived::Scalar > |
| | Evaluate interpolant at multiple points.
|
◆ Interpolator() [1/5]
| janus::Interpolator::Interpolator |
( |
| ) |
|
|
default |
◆ Interpolator() [2/5]
Construct N-dimensional interpolator.
- Parameters
-
| points | Vector of 1D coordinate arrays for each dimension |
| values | Flattened values in Fortran order (column-major) |
| method | Interpolation method (default: Linear) |
- Exceptions
-
◆ Interpolator() [3/5]
Construct 1D interpolator (convenience overload).
This is syntactic sugar for the N-D constructor with N=1.
- Parameters
-
| x | Grid points (must be sorted) |
| y | Function values at grid points |
| method | Interpolation method (default: Linear) |
- Exceptions
-
◆ Interpolator() [4/5]
Construct N-dimensional interpolator with extrapolation config.
- Parameters
-
| points | Vector of 1D coordinate arrays for each dimension |
| values | Flattened values in Fortran order (column-major) |
| method | Interpolation method |
| extrap | Extrapolation configuration |
- Exceptions
-
◆ Interpolator() [5/5]
◆ dims()
| int janus::Interpolator::dims |
( |
| ) |
const |
|
inline |
◆ method()
◆ operator()() [1/3]
template<typename Derived>
| auto janus::Interpolator::operator() |
( |
const Eigen::MatrixBase< Derived > & | queries | ) |
const->JanusVector< typenameDerived::Scalar > |
|
inline |
Evaluate interpolant at multiple points.
For 1D interpolators, pass a vector of query points. For N-D interpolators, pass (n_points, n_dims) matrix.
- Template Parameters
-
| Derived | Eigen expression type |
- Parameters
-
| queries | Query points (vector for 1D, matrix for N-D) |
- Returns
- Vector of interpolated values
◆ operator()() [2/3]
template<JanusScalar Scalar>
| Scalar janus::Interpolator::operator() |
( |
const JanusVector< Scalar > & | query | ) |
const |
|
inline |
Evaluate N-D interpolant at a single point.
For N≥2 interpolators, pass a vector of coordinates. For 1D, use scalar overload or batch query.
- Template Parameters
-
- Parameters
-
| query | Query point (size must match dims()) |
- Returns
- Interpolated scalar value
◆ operator()() [3/3]
template<JanusScalar Scalar>
| Scalar janus::Interpolator::operator() |
( |
const Scalar & | query | ) |
const |
|
inline |
◆ valid()
| bool janus::Interpolator::valid |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: