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

Function mean

crates/openquant/src/strategy_risk.rs:285–287  ·  view source on GitHub ↗
(values: &[f64])

Source from the content-addressed store, hash-verified

283}
284
285fn mean(values: &[f64]) -> f64 {
286 values.iter().sum::<f64>() / values.len() as f64
287}
288
289fn std_dev(values: &[f64]) -> f64 {
290 if values.len() < 2 {

Callers 2

std_devFunction · 0.70

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected