Blyx Nest Blyx language
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.

Source repository · Package JSON

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

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse files9b5c1a4db6c2747994eb128d6174aa6a9155232aadc49f259b3c2ae8fa7e883fb5db407240
0.1.0Download ZIP · Browse files6349f23784d4405b611e33bda64a90047aeba28092255a2a624f76daa0551422eca25a4620