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

Function log_prices

crates/openquant/tests/structural_breaks.rs:20–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20fn log_prices() -> Vec<f64> {
21 load_close_prices().into_iter().map(|v| v.ln()).collect()
22}
23
24fn mean(values: &[f64]) -> f64 {
25 values.iter().sum::<f64>() / values.len() as f64

Callers 3

test_chow_testFunction · 0.85
test_sadf_testFunction · 0.85

Calls 1

load_close_pricesFunction · 0.85

Tested by

no test coverage detected