
Kernel Density
KernelDensity.jl provides kernel density estimators for Julia, including univariate density estimation.

About Kernel Density
KernelDensity.jl provides kernel density estimators for Julia. It builds a UnivariateKDE from a real vector with kde(data) and a BivariateKDE from a tuple of vectors or a two-column matrix, returning gridded coordinates and density values for plotting.
It supports choice of kernel distribution, bandwidth, boundaries, grid and observation weights, plus bandwidth selection by least-squares cross-validation with kde_lscv. Intermediate values can be queried with pdf via Interpolations.jl. It uses FFTs internally, so boundaries need sufficient spacing to prevent wrap-around and npoints defaults to 2048 with power-of-2 values for optimal efficiency.
Key features
- Univariate density estimation from real vector via kde
- Bivariate density estimation from tuple or two-column matrix
- Bandwidth selection by Silverman's rule or least-squares cross-validation
- Custom kernels from Distributions.jl families
- Observation weights via vectors or StatsBase weights
- Interpolated density queries via pdf and InterpKDE
- Handles both univariate and bivariate data inputs
- Supports custom kernels, grids, boundaries and observation weights
- Allows pdf interpolation of gridded estimates, with InterpKDE for repeated queries
- Requires sufficient boundary spacing to prevent FFT wrap-around
- Non-power-of-2 npoints reduces FFT efficiency
Kernel Density at a glance
- Category
- Development › Developer Tools
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Not stated
- Language
- English
- Last checked
- Oct 5, 2026 · Online when checked
- Listed
- Oct 5, 2026
Guides for Developer Tools
Kernel Density alternatives
Tools and sites you could use instead, ranked by how closely they match.
Semantic Kernel helps integrate large language model technology into applications.
jSciPy provides Java scientific computing tools for signal processing, FFT, filtering, power spectral density, and DCT.
Jupytext lets users represent Jupyter notebooks as Markdown documents or Julia, Python, and R scripts.
DataDeps.jl provides reproducible data setup for scientific work, with a Julia package for fetching and using data dependencies.
GLM.jl provides generalized linear models in Julia, with documentation and examples for the package.
Loess.jl is a Julia implementation of local regression using a fast kd-tree-based approximation.
Popular in Developer Tools
Well-known listings from the same topic.
Kernel Density FAQ
How do I create a univariate density estimate?
How do I select bandwidth by least-squares cross-validation?
How do I get density values between grid points?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.













