Blyx Nest Blyx language
Registry / Library
library · v0.1.0

RankBand

Look up the finite interval represented by a histogram bin.

Source repository · Package JSON

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

VersionPackageSource commitSHA-256
0.1.0Download ZIPf68c5b6533f7786c2608334e6e8210a03cd3f0be296c68dea7cb0b21179ee0c6afe1b3e1c9