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

#314 in Math

Download history 98/week @ 2024-06-17 106/week @ 2024-06-24 32/week @ 2024-07-01 33/week @ 2024-07-08 268/week @ 2024-07-15 742/week @ 2024-07-22 363/week @ 2024-07-29 479/week @ 2024-08-05 513/week @ 2024-08-12 522/week @ 2024-08-19 816/week @ 2024-08-26 521/week @ 2024-09-02 314/week @ 2024-09-09 1477/week @ 2024-09-16 790/week @ 2024-09-23 1225/week @ 2024-09-30

3,811 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