Registry / Library

library · v0.1.0
Moments
Summarize paired observations as they arrive and merge statistics from independent batches.
Use Moments
use vendor::moments::moments;
Run the example
nest demo moments@0.1.0
blyxc native-run moments-demo/main.blyx
Example source and expected output
use vendor::moments::moments;
fn main() {
let morning = mom_summary([1, 2], [10, 12]);
let afternoon = mom_summary([3], [14]);
let day = mom_merge(morning, afternoon);
println!(at(day, 0));
println!(at(day, 2));
println!(mom_sample_sd_y(day));
}
Expected output
3
12
2
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | 15ab010ca2 | 43359540a51956b88f2c6ebb67204e9846e6b33675f198b9eba49ca13fe8d7d2 |