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

Function register

crates/pyopenquant/src/ef3m.rs:60–69  ·  view source on GitHub ↗
(py: Python<'_>, parent: &Bound<'_, PyModule>)

Source from the content-addressed store, hash-verified

58
59/// The most likely value of each mixture parameter over many EF3M fits.
60///
61/// López de Prado and Foreman (2014): for each of `mu_1`, `mu_2`, `sigma_1`, `sigma_2` and
62/// `p_1` separately, the peak of a Gaussian kernel density over the fits, rounded to five
63/// decimals (the `error` column is ignored). The bandwidth is `std * n^(-1/5)` (population
64/// standard deviation, floored at `1e-6`) and the density is evaluated on `max(res, 10)`
65/// evenly spaced points from the column's minimum to its maximum; a constant column returns
66/// its value. The five modes may come from different runs and need not reproduce the
67/// moments; check that the runs agree on which component is which.
68///
69/// Parameters
70/// ----------
71/// data : list[tuple[float, float, float, float, float, float]]
72/// Fits as `(mu_1, mu_2, sigma_1, sigma_2, p_1, error)` rows, e.g. from `fit_m2n`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected