#include <ScatteredInterpolator.hpp>
|
| | ScatteredInterpolator ()=default |
| | Default constructor (invalid state).
|
| | ScatteredInterpolator (const NumericMatrix &points, const NumericVector &values, int grid_resolution=20, RBFKernel kernel=RBFKernel::ThinPlateSpline, double epsilon=1.0, InterpolationMethod method=InterpolationMethod::Linear) |
| | Construct from scattered N-D points with uniform grid resolution.
|
| | ScatteredInterpolator (const NumericMatrix &points, const NumericVector &values, const std::vector< NumericVector > &grid_points, RBFKernel kernel=RBFKernel::ThinPlateSpline, double epsilon=1.0, InterpolationMethod method=InterpolationMethod::Linear) |
| | Construct with explicit per-dimension grid specification.
|
| | ScatteredInterpolator (const NumericVector &x, const NumericVector &y, int grid_resolution=50, RBFKernel kernel=RBFKernel::ThinPlateSpline) |
| | 1D convenience constructor
|
| template<JanusScalar Scalar> |
| Scalar | operator() (const JanusVector< Scalar > &query) const |
| | Evaluate at N-D point.
|
| template<JanusScalar Scalar> |
| Scalar | operator() (const Scalar &query) const |
| | Evaluate at scalar (1D only).
|
| int | dims () const |
| | Get number of input dimensions.
|
| bool | valid () const |
| | Check if interpolator is valid (initialized).
|
| const Interpolator & | gridded () const |
| | Get underlying gridded interpolator (for inspection).
|
| double | reconstruction_error () const |
| | Get RMS reconstruction error at original scattered points.
|
◆ ScatteredInterpolator() [1/4]
| janus::ScatteredInterpolator::ScatteredInterpolator |
( |
| ) |
|
|
default |
Default constructor (invalid state).
◆ ScatteredInterpolator() [2/4]
Construct from scattered N-D points with uniform grid resolution.
- Parameters
-
| points | Data locations, shape (n_points, n_dims) |
| values | Function values at each point (length n_points) |
| grid_resolution | Points per dimension for resampling grid |
| kernel | RBF kernel type (default: ThinPlateSpline) |
| epsilon | Shape parameter for Multiquadric/Gaussian kernels |
| method | Gridded interpolation method for final queries |
- Exceptions
-
◆ ScatteredInterpolator() [3/4]
Construct with explicit per-dimension grid specification.
- Parameters
-
| points | Data locations, shape (n_points, n_dims) |
| values | Function values at each point |
| grid_points | Explicit grid coordinates per dimension |
| kernel | RBF kernel type |
| epsilon | Shape parameter for Multiquadric/Gaussian kernels |
| method | Gridded interpolation method for final queries |
◆ ScatteredInterpolator() [4/4]
1D convenience constructor
- Parameters
-
| x | Scattered x-coordinates |
| y | Function values at each x |
| grid_resolution | Points for resampling grid |
| kernel | RBF kernel type |
◆ dims()
| int janus::ScatteredInterpolator::dims |
( |
| ) |
const |
|
inline |
Get number of input dimensions.
- Returns
- Number of dimensions
◆ gridded()
| const Interpolator & janus::ScatteredInterpolator::gridded |
( |
| ) |
const |
|
inline |
Get underlying gridded interpolator (for inspection).
- Returns
- Reference to gridded interpolator
◆ operator()() [1/2]
template<JanusScalar Scalar>
| Scalar janus::ScatteredInterpolator::operator() |
( |
const JanusVector< Scalar > & | query | ) |
const |
|
inline |
Evaluate at N-D point.
- Template Parameters
-
- Parameters
-
- Returns
- Interpolated value
◆ operator()() [2/2]
template<JanusScalar Scalar>
| Scalar janus::ScatteredInterpolator::operator() |
( |
const Scalar & | query | ) |
const |
|
inline |
Evaluate at scalar (1D only).
- Template Parameters
-
- Parameters
-
- Returns
- Interpolated value
◆ reconstruction_error()
| double janus::ScatteredInterpolator::reconstruction_error |
( |
| ) |
const |
|
inline |
Get RMS reconstruction error at original scattered points.
Measures how well the gridded approximation reproduces the original scattered data. Lower is better.
◆ valid()
| bool janus::ScatteredInterpolator::valid |
( |
| ) |
const |
|
inline |
Check if interpolator is valid (initialized).
- Returns
- True if initialized
The documentation for this class was generated from the following file: