Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
20
fn log_prices() -> Vec<f64> {
21
load_close_prices().into_iter().map(|v| v.ln()).collect()
22
}
23
24
fn mean(values: &[f64]) -> f64 {
25
values.iter().sum::<f64>() / values.len() as f64
Callers
3
test_chow_test
Function · 0.85
test_chu_stinchcombe_white_test
Function · 0.85
test_sadf_test
Function · 0.85
Calls
1
load_close_prices
Function · 0.85
Tested by
no test coverage detected