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

SloBurn

Normalize observed failures by an allowed error fraction.

Source repository · Package JSON

Use SloBurn

use vendor::sloburn::sloburn;

Run the example

nest demo sloburn@0.1.0
blyxc native-run sloburn-demo/main.blyx
Example source and expected output
use vendor::sloburn::sloburn;

fn main() {
    let bad = 4.0;
    let total = 100.0;
    let allowed = 0.02;
    let result = sloburn_rate(bad, total, allowed);
    if len(result) == 0 { println!("invalid"); return; }
    let mut i = 0;
    while i < len(result) {
        println!(at(result, i));
        i += 1;
    }
}

Expected output

0.04
2

Published versions

VersionPackageSource commitSHA-256
0.1.0Download ZIP7d73e763454179220a242a040ef740e174d5ea5066736c97e1e4af5c588c8677d24761acf6