9 unstable releases (3 breaking)

0.4.1 Oct 12, 2023
0.4.0 Oct 3, 2023
0.3.2 Sep 21, 2023
0.3.1 Aug 29, 2023
0.1.1 Jul 8, 2023

#297 in Math

Download history 79/week @ 2024-06-09 90/week @ 2024-06-16 111/week @ 2024-06-23 34/week @ 2024-06-30 36/week @ 2024-07-07 268/week @ 2024-07-14 740/week @ 2024-07-21 364/week @ 2024-07-28 469/week @ 2024-08-04 481/week @ 2024-08-11 529/week @ 2024-08-18 814/week @ 2024-08-25 555/week @ 2024-09-01 317/week @ 2024-09-08 1220/week @ 2024-09-15 1079/week @ 2024-09-22

3,188 downloads per month
Used in kneed_rs

MIT license

83KB
2K SLoC

ndarray-interp

A Interpolation crate for usage with the rust ndarray crate.

Features

  • 1D-Interpolation of n-dimensional data along the first axis
  • 2D-Interpolation of n-dimensional data along the first two axes
  • Add your own Interpolation algorithms
  • Interpolation of owned arrays and array views
  • Interpolation at multiple points at once

Interpolation strategies

  • Linear interpolation with, and without extrapolation
  • Cubic spline interpolation Wikipedia
  • Biliniar interpolation with, and without extrapolation Wikipedia

Planned Features

  • More interpolation strategies
  • rayon support

lib.rs:

The ndarray-interp crate provides interpolation algorithms for interpolating n-dimesional data.

1D and 2D interpolation is supported. See the modules [interp1d] and [interp2d]

Custom interpolation strategy

This crate defines traits to allow implementation of user defined interpolation algorithms. see the custom_strategy.rs example.

Dependencies

~1.6–2.1MB
~43K SLoC