Registry / Library

library · v0.1.1
Peak Sample Index
Locate the first sample of greatest absolute magnitude, preserving the index for waveform annotation. Empty input returns minus one.
Use Peak Sample Index
use vendor::peak_sample_index::peak_sample_index;
Run the example
nest demo peak_sample_index@0.1.1
blyxc native-run peak_sample_index-demo/main.blyx
Example source and expected output
use vendor::peak_sample_index::peak_sample_index;
fn main() {
println!(peak_sample_index([1,-4,3]));
}
Expected output
1
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 9b5c1a4db6 | c2747994eb128d6174aa6a9155232aadc49f259b3c2ae8fa7e883fb5db407240 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | d4405b611e33bda64a90047aeba28092255a2a624f76daa0551422eca25a4620 |