Registry / Library

library · v0.1.1
Central Slope
Estimate a centered finite-difference slope at an interior sample of uniformly spaced data. Invalid positions or spacing return zero.
Use Central Slope
use vendor::central_slope::central_slope;
Run the example
nest demo central_slope@0.1.1
blyxc native-run central_slope-demo/main.blyx
Example source and expected output
use vendor::central_slope::central_slope;
fn main() {
println!(central_slope([0,1,4],1,1.0));
}
Expected output
2
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 19b867c413 | df7f1b81ec739885e2dea8534721e58ba3530a10bd2b0d5b76e88e9e384bb605 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | ed55814a0360616351388541618ddbe1c8c35b083d65a561546e71b9c02b7a76 |