import { kernelDensityEstimation } from "https://deno.land/x/simplestatistics@v7.8.3/index.js";
Kernel density estimation is a useful tool for, among other things, estimating the shape of the underlying probability distribution from a sample.
Parameters
The kernel function to use. If a function is provided, it should return non-negative values and integrate to 1. Defaults to 'gaussian'.
The "bandwidth selection" method to use, or a fixed bandwidth value. Defaults to "nrd", the commonly-used "normal reference distribution" rule-of-thumb.