Registry / Library

library · v0.1.0
HistQuantile
Locate a nearest-rank quantile in noncumulative histogram counts.
Use HistQuantile
use vendor::histquantile::histquantile;
Run the example
nest demo histquantile@0.1.0
blyxc native-run histquantile-demo/main.blyx
Example source and expected output
use vendor::histquantile::histquantile;
fn main() {
let counts = [0, 2, 6];
let probability = 0.5;
let result = histquantile_bucket(counts, probability);
if len(result) == 0 { println!("invalid"); return; }
let mut i = 0;
while i < len(result) {
println!(at(result, i));
i += 1;
}
}
Expected output
2
4
8
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | b5dd0b838a | 566cbb36258577919ffa9382cc484f081c058292e9fe2c1db1df18542af57df8 |