tests.test_kde module

Tests for the Kernel Density Estimation module

integrate(z, x, y)[source]
kde_data_test_set()[source]

Yields test data for the KDE data tests

kernel_estimators()[source]

Yields the kernel density estimators

test_KDE_batch(batch, evalKDE)[source]

Test both kernel density estimators by using random data points and evaluating the Kernel Density Estimation at one point

Parameters:
  • batch

  • evalKDE

Returns:

test_KDE_data(evalKDE, data, stdevs, grid_bounds, resolution=33)[source]

Test both kernel density estimators by using one data point and evaluating the Kernel Density Estimation over a grid

Parameters:
  • evalKDE

  • data

  • stdevs

  • grid_bounds

  • resolution – (Default value = 33)

Returns:

test_calc_kernel_width()[source]
test_kde_convergence_gauss(dim, num_grid_points=100, num_data_points=10000)[source]

Test whether the KDE converges to the true distribution.

test_kde_gauss()[source]