Skip to main content

Lightning fast, lightweight, and reliable kernel density estimation.

Project description

lightkde

Documentation Status Continuous integration PyPI version python versions coverage Language grade: Python Total alerts Code style: black

A lightning fast, lightweight, and reliable kernel density estimation.

  • Easy to use, e.g. density_vec, x_vec = kde_1d(sample_vec=sample).
  • Works with 1d and 2d samples.
  • Works with weighted samples as well.
  • Based on the MATLAB implementations of Botev: kde, kde2d.

alt text

Install

pip install lightkde

Usage

import numpy as np
from lightkde import kde_1d

sample = np.random.randn(1000)

density_vec, x_vec = kde_1d(sample_vec=sample)

For further examples see the documentation.

Other kde packages

Other python packages for kernel density estimation:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for lightkde, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size lightkde-1.0.2-py3-none-any.whl (13.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size lightkde-1.0.2.tar.gz (12.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page