MCPcopy Create free account
hub / github.com/Open-Quant/openquant / mean

Function mean

crates/openquant/tests/structural_breaks.rs:24–26  ·  view source on GitHub ↗
(values: &[f64])

Source from the content-addressed store, hash-verified

22
23fn assert_rel(got: f64, want: f64, rel: f64, what: &str) {
24 assert!(
25 (got - want).abs() <= rel * want.abs().max(1.0),
26 "{what}: got {got}, want {want} (rel tol {rel})"
27 );
28}
29

Callers

nothing calls this directly

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected