Registry / Framework

framework · v0.1.0
Redstart
Update a binary-event model and report uncertainty in its probability.
Use Redstart
use vendor::redstart::redstart;
Run the example
nest demo redstart@0.1.0
blyxc native-run redstart-demo/main.blyx
Example source and expected output
use vendor::redstart::redstart;
fn main() {
let alpha = 1.0;
let beta = 1.0;
let positive = 1.0;
let negative = 1.0;
let result = redstart_posterior(alpha, beta, positive, negative);
if len(result) == 0 { println!("invalid"); return; }
let mut i = 0;
while i < len(result) {
println!(at(result, i));
i += 1;
}
}
Expected output
0.5
0.05
2
2
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | 4298bb79a1 | ecc4ac8c32bcb3417cb73062bb0a37e385c4add5e3ed5cca5123f46d33a401e0 |