vuecore.utils.statistics module

Contents

vuecore.utils.statistics module#

vuecore.utils.statistics.get_density(x: ndarray, y: ndarray) ndarray[source]#

Calculates the kernel density estimate for each point in a 2D dataset.

Parameters:
  • x (np.ndarray) – The x-coordinates of the data points.

  • y (np.ndarray) – The y-coordinates of the data points.

Returns:

An array of density values, one for each input (x, y) point.

Return type:

np.ndarray