(
series: Vec<f64>,
model: String,
add_const: bool,
min_length: usize,
lags: usize,
)
| 21 | #[pyfunction(name = "get_sadf")] |
| 22 | #[pyo3(signature = (series, model, add_const, min_length, lags))] |
| 23 | fn 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 | |
| 40 | pub fn register(py: Python<'_>, parent: &Bound<'_, PyModule>) -> PyResult<()> { |
| 41 | let m = PyModule::new(py, "structural_breaks")?; |
nothing calls this directly
no test coverage detected