(
py: Python<'_>,
data: Vec<(f64, f64, f64, f64, f64, f64)>,
res: usize,
)
| 14 | /// |
| 15 | /// Parameters |
| 16 | /// ---------- |
| 17 | /// moments : list[float] |
| 18 | /// Raw moments `[E[x], E[x^2], ...]`. |
| 19 | /// order : int |
| 20 | /// Order of the centred moment. |
| 21 | /// |
| 22 | /// Returns |
| 23 | /// ------- |
| 24 | /// float |
| 25 | /// The centred moment. |
| 26 | /// |
| 27 | /// Raises |
| 28 | /// ------ |
| 29 | /// ValueError |
| 30 | /// If `moments` has fewer than `max(order, 1)` entries. |
| 31 | #[pyfunction(name = "centered_moment")] |
| 32 | fn ef3m_centered_moment(moments: Vec<f64>, order: usize) -> PyResult<f64> { |
| 33 | openquant::ef3m::centered_moment(&moments, order).map_err(to_py_err) |
| 34 | } |
| 35 | |
| 36 | /// Raw moments `[E[x], E[x^2], ...]` from centred moments and the mean. |
nothing calls this directly
no test coverage detected