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

#328 in Math

Download history 685/week @ 2024-07-20 436/week @ 2024-07-27 475/week @ 2024-08-03 463/week @ 2024-08-10 530/week @ 2024-08-17 816/week @ 2024-08-24 564/week @ 2024-08-31 321/week @ 2024-09-07 371/week @ 2024-09-14 1869/week @ 2024-09-21 1015/week @ 2024-09-28 563/week @ 2024-10-05 503/week @ 2024-10-12 103/week @ 2024-10-19 162/week @ 2024-10-26 39/week @ 2024-11-02

862 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
~44K SLoC