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

Function register

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

Source from the content-addressed store, hash-verified

49/// `"M"`/`"month"`/`"monthly"` every 21st (case-insensitive); anything else, or None,
50/// keeps every row.
51/// calculate_expected_returns : str, default "mean"
52/// How expected returns are estimated from the returns for `"sharpe_ratio"`: `"mean"` or
53/// `"exponential"` (exponentially weighted, span 500); case-insensitive.
54/// distance : str | None, default None
55/// Distance the tree is built on (case-insensitive): `"correlation"` (the default when
56/// None; cluster on `d` itself, Mantegna's correlation distance, as Raffinot and
57/// mlfinlab do) or `"distance_of_distances"` (the Euclidean distance between columns
58/// of `d`, as AFML Snippet 16.4 and the HRP default compute).
59/// linkage : str | None, default None
60/// How the distance between clusters is measured when the tree is built

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected