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

Function codependence_get_mutual_info

crates/pyopenquant/src/codependence.rs:36–43  ·  view source on GitHub ↗
(
    x: Vec<f64>,
    y: Vec<f64>,
    n_bins: Option<usize>,
    normalize: bool,
)

Source from the content-addressed store, hash-verified

34#[pyfunction(name = "get_mutual_info")]
35#[pyo3(signature = (x, y, n_bins=None, normalize=false))]
36fn codependence_get_mutual_info(
37 x: Vec<f64>,
38 y: Vec<f64>,
39 n_bins: Option<usize>,
40 normalize: bool,
41) -> PyResult<f64> {
42 openquant::codependence::get_mutual_info(&x, &y, n_bins, normalize).map_err(to_py_err)
43}
44
45#[pyfunction(name = "variation_of_information_score")]
46#[pyo3(signature = (x, y, n_bins=None, normalize=false))]

Callers

nothing calls this directly

Calls 1

get_mutual_infoFunction · 0.85

Tested by

no test coverage detected