Skip to content

About

Code for Paper

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Density Estimation from Weighted Samples with the Localized Cumulative Distribution

Companion Julia code for the conference paper:

D. Frisch and U. D. Hanebeck,
"Density Estimation from Weighted Samples with the Localized Cumulative Distribution,"
in Proceedings of the 2026 IFAC World Congress, Busan, Korea, 2026.

@inproceedings{IFAC26_Frisch,
 title = {Density Estimation from Weighted Samples with the Localized Cumulative Distribution},
 author = {Daniel Frisch and Uwe D. Hanebeck},
 booktitle = {Proceedings of the 23rd IFAC World Congress (IFAC 2026)},
 address = {Busan, Republic of Korea},
 year = {2026}
 month = {August},
}

The code can also be found here: https://github.com/KIT-ISAS/IFAC26_Frisch

Overview

This repository implements nonparametric density estimation on a regular 2D grid from (possibly weighted) samples. The method uses:

  • The Localized Cumulative Distribution (LCD) with a modified Cramér–von Mises distance to measure the discrepancy between samples and grid density (no single kernel bandwidth needed).
  • Fisher Information regularization for smoothness.
  • A square root density representation that enforces nonnegativity and simplifies the Fisher Information to a quadratic form.
  • Analytical gradients for efficient L-BFGS optimization.

Scripts

File Description
dat2grid_weighted.jl Density estimation from importance-weighted samples drawn from a biased proposal density (Section 4).

Usage

Install Julia, see: https://julialang.org/

Commandline:

julia dat2grid_weighted.jl

Or: Commandline with REPL:

julia
julia> include("dat2grid_weighted.jl")

Or: open the folder in Visual Studio Code, with installed Julia extension.

Output figures are saved to figures/.

Example Output

Density estimation from weighted samples

Dependencies

License

MIT

About

Code for Paper

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages