cantuccio.kde module

kde.py

Kernel Density Estimation utilities for cantuccio.

cantuccio.kde.hdi_levels(z_out, levels)[source]

Density thresholds for Highest Density contours.

Return type:

list[float]

cantuccio.kde.kde_1d(data, bw, n=512, weights=None, fast=False, periodic=None)[source]
Return type:

tuple[ndarray, ndarray]

cantuccio.kde.kde_2d(x, y, bw, n=80, weights=None, fast=False, periodic_x=None, periodic_y=None)[source]
Return type:

tuple[ndarray, ndarray, ndarray]