Registry / utility / interp

interp

JSON →
library2.1.2rscratesunverified

A Rust implementation of Matlab's interp1 function

# Cargo.toml [dependencies] interp = "2.1.2"
INSTALL
IMPORT
SIG · INTERP
I
interp
utilityrustv2.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

interp1
use interp::interp1;

Performs linear interpolation on sample data points.

use interp::interp1; fn main() { let x = vec![0.0, 1.0, 2.0]; let y = vec![0.0, 1.0, 4.0]; let xi = vec![0.5, 1.5]; let yi = interp1(&x, &y, &xi, interp::Method::Linear); println!("Interpolated: {:?}", yi); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
interp — cargo add interp · libregistry