Kernel density estimation with per-sample bandwidths determined by the widths of Bayesian Blocks.
As the measurements in this example are quantized, the block likelihood needs to account for the bin width. However, the current implementation assumes continuous, unique event data. Therefore, noise has been added to the dataset to approximate continuous measurements.
This example is based on a constant-bandwidth version by Mike Bostock.