Registry / Library

library · v0.1.0
RankBand
Look up the finite interval represented by a histogram bin.
Use RankBand
use vendor::rankband::rankband;
Run the example
nest demo rankband@0.1.0
blyxc native-run rankband-demo/main.blyx
Example source and expected output
use vendor::rankband::rankband;
fn main() {
let edges = [0, 10, 30];
let index = 1.0;
let result = rankband_interval(edges, index);
if len(result) == 0 { println!("invalid"); return; }
let mut i = 0;
while i < len(result) {
println!(at(result, i));
i += 1;
}
}
Expected output
10
30
20
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | f68c5b6533 | f7786c2608334e6e8210a03cd3f0be296c68dea7cb0b21179ee0c6afe1b3e1c9 |