#include <TableInterpolator.hpp>
|
| | ScatteredTable1D (const janus::NumericVector &x, const janus::NumericVector &y, int grid_resolution=50, RBFKernel kernel=RBFKernel::ThinPlateSpline) |
| | Construct 1D scattered interpolation table.
|
| template<janus::JanusScalar Scalar> |
| Scalar | operator() (const Scalar &x) const |
| | Query table at a single point.
|
| double | reconstruction_error () const |
| | Get RMS reconstruction error at original data points.
|
| int | dims () const |
| | Get number of dimensions (always 1).
|
| bool | valid () const |
| | Check if table is valid (initialized).
|
◆ ScatteredTable1D()
| vulcan::ScatteredTable1D::ScatteredTable1D |
( |
const janus::NumericVector & | x, |
|
|
const janus::NumericVector & | y, |
|
|
int | grid_resolution = 50, |
|
|
RBFKernel | kernel = RBFKernel::ThinPlateSpline ) |
|
inline |
Construct 1D scattered interpolation table.
- Parameters
-
| x | Independent variable values (can be non-uniform) |
| y | Dependent variable values at x points |
| grid_resolution | Grid points for resampling (default: 50) |
| kernel | RBF kernel type (default: ThinPlateSpline) |
- Exceptions
-
| janus::InterpolationError | if sizes don't match or < 2 points |
- Examples
- /home/runner/work/vulcan/vulcan/include/vulcan/core/TableInterpolator.hpp.
◆ dims()
| int vulcan::ScatteredTable1D::dims |
( |
| ) |
const |
|
inline |
◆ operator()()
template<janus::JanusScalar Scalar>
| Scalar vulcan::ScatteredTable1D::operator() |
( |
const Scalar & | x | ) |
const |
|
inline |
◆ reconstruction_error()
| double vulcan::ScatteredTable1D::reconstruction_error |
( |
| ) |
const |
|
inline |
◆ valid()
| bool vulcan::ScatteredTable1D::valid |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: