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

Function sb_get_sadf

crates/pyopenquant/src/structural_breaks.rs:23–38  ·  view source on GitHub ↗
(
    series: Vec<f64>,
    model: String,
    add_const: bool,
    min_length: usize,
    lags: usize,
)

Source from the content-addressed store, hash-verified

21#[pyfunction(name = "get_sadf")]
22#[pyo3(signature = (series, model, add_const, min_length, lags))]
23fn sb_get_sadf(
24 series: Vec<f64>,
25 model: String,
26 add_const: bool,
27 min_length: usize,
28 lags: usize,
29) -> PyResult<Vec<f64>> {
30 openquant::structural_breaks::get_sadf(
31 &series,
32 &model,
33 add_const,
34 min_length,
35 openquant::structural_breaks::SadfLags::Fixed(lags),
36 )
37 .map_err(to_py_err)
38}
39
40pub fn register(py: Python<'_>, parent: &Bound<'_, PyModule>) -> PyResult<()> {
41 let m = PyModule::new(py, "structural_breaks")?;

Callers

nothing calls this directly

Calls 1

get_sadfFunction · 0.85

Tested by

no test coverage detected