Crates.io | ninterp |
lib.rs | ninterp |
version | 0.1.0 |
source | src |
created_at | 2024-11-27 16:26:09.064641 |
updated_at | 2024-11-27 16:26:09.064641 |
description | Numerical interpolation in N-dimensions over a regular, sorted, nonrepeating grid |
homepage | |
repository | https://github.com/NREL/ninterp |
max_upload_size | |
id | 1463297 |
size | 81,672 |
The ninterp
crate provides multivariate interpolation over a regular, sorted, nonrepeating grid of any dimensionality. A variety of interpolation strategies are implemented, however more are likely to be added. Extrapolation beyond the range of the supplied coordinates is supported for 1-D linear interpolators, using the slope of the nearby points.
There are hard-coded interpolators for lower dimensionalities (up to N = 3) for better runtime performance.
All interpolation is handled through instances of the Interpolator enum, with the selected tuple variant containing relevant data. Interpolation is executed by calling Interpolator::interpolate.
serde
: support for serdeSee the Interpolator enum documentation for examples and notes on usage.