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

Function test_frac_diff_ffd

crates/openquant/tests/fracdiff.rs:42–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41#[test]
42fn test_frac_diff_ffd() {
43 let data = load_close_series();
44 for i in 1..10 {
45 let diff_amt = i as f64 / 10.0;
46 let fd = frac_diff_ffd(&data, diff_amt, 1e-5);
47 assert_eq!(fd.len(), data.len());
48 assert!(fd[0].is_nan());
49 }
50}

Callers

nothing calls this directly

Calls 2

load_close_seriesFunction · 0.85
frac_diff_ffdFunction · 0.85

Tested by

no test coverage detected