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

Function ef3m_most_likely_parameters

crates/pyopenquant/src/ef3m.rs:16–33  ·  view source on GitHub ↗
(
    py: Python<'_>,
    data: Vec<(f64, f64, f64, f64, f64, f64)>,
    res: usize,
)

Source from the content-addressed store, hash-verified

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")]
32fn 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.

Callers

nothing calls this directly

Calls 1

most_likely_parametersFunction · 0.85

Tested by

no test coverage detected