A nonparametric density estimate built from a sample by summing a kernel centered at
each observation. Mirrors the C# KernelDensity composite.
Arguments
- data
numeric vector of observations the density is built from.
- kernel
the kernel shape:
"Gaussian"(the default),"Epanechnikov","Triangular", or"Uniform".- bandwidth
the kernel bandwidth;
NULL(the default) uses Silverman's rule of thumb.- bounded_by_data
whether the reported minimum and maximum are the smallest and largest observation (
TRUE, the default) or extend three bandwidths past each. Those bounds gatedist_cdf()anddist_quantile(). The density is summed wherever you ask it, either way.