diff --git a/README.md b/README.md index 6bad360c..3aa93418 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ optional keyword arguments are `kernel_dist` function. * `bandwidth`: the bandwidth of the kernel. Default is to use Silverman's rule. +* `weights`: `StatsBase.Weights` vector specifying weights for each observation (defaults to uniform weights). The `UnivariateKDE` object `U` contains gridded coordinates (`U.x`) and the density estimate (`U.density`). These are typically sufficient for plotting. diff --git a/docs/src/index.md b/docs/src/index.md index abc2406d..047b15bd 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -29,6 +29,7 @@ optional keyword arguments are `kernel_dist` function. * `bandwidth`: the bandwidth of the kernel. Default is to use Silverman's rule. +* `weights`: `StatsBase.Weights` vector specifying weights for each observation (defaults to uniform weights). The `UnivariateKDE` object `U` contains gridded coordinates (`U.x`) and the density estimate (`U.density`). These are typically sufficient for plotting.