From 2c34861f4e87fda86dbe710bc284508d2a81d4ee Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 23:08:21 +0100 Subject: [PATCH 1/4] CompatHelper: bump compat for Interpolations to 0.15, (keep existing compat) (#119) Co-authored-by: CompatHelper Julia --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 76c4c188..7624e0c0 100644 --- a/Project.toml +++ b/Project.toml @@ -14,7 +14,7 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" Distributions = "0.23, 0.24, 0.25" DocStringExtensions = "0.8, 0.9" FFTW = "1" -Interpolations = "0.9, 0.10, 0.11, 0.12, 0.13, 0.14" +Interpolations = "0.9, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15" StatsBase = "0.33, 0.34" julia = "1" From ab69a5135631cc9ae539e210673192ce9c342a10 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Fri, 15 Dec 2023 23:08:50 +0100 Subject: [PATCH 2/4] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 7624e0c0..e0df42fe 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "KernelDensity" uuid = "5ab0869b-81aa-558d-bb23-cbf5423bbe9b" authors = ["Simon Byrne and various contributors"] -version = "0.6.7" +version = "0.6.8" [deps] Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" From 93437e00dd3c0c070b0934ec5554b83108144381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=9Al=C4=99zak?= <128084860+jaksle@users.noreply.github.com> Date: Mon, 29 Jan 2024 11:27:51 +0100 Subject: [PATCH 3/4] Adding help to kde method (#121) * Update univariate.jl * Update src/univariate.jl Co-authored-by: Tamas K. Papp * Update src/univariate.jl Co-authored-by: Tamas K. Papp --------- Co-authored-by: Tamas K. Papp --- src/univariate.jl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/univariate.jl b/src/univariate.jl index cba5181d..5f71a809 100644 --- a/src/univariate.jl +++ b/src/univariate.jl @@ -147,6 +147,20 @@ function conv(k::UnivariateKDE, dist::UnivariateDistribution) end # main kde interface methods + +""" + + kde(data; kwargs...) + kde((xdata, ydata); kwargs...) + +Kernel density estimation method. Returns 1D or 2D KDE object. The grid used and the values of the estimated density can be obtained from fields `.x` and `.density` respectively. To obtain kde values at points different than the initial grid use the `pdf` method. + +The keyword arguments are +* `boundary`: the lower and upper limits of the kde, tuple in 1D case, tuple of tuples in 2D case, +* `npoints`: the number of interpolation points to use, +* `kernel = Normal`: the distributional family from [Distributions.jl](https://github.com/JuliaStats/Distributions.jl), +* `bandwidth`: the bandwidth of the kernel; default is calculated using Silverman's rule. +""" function kde(data::AbstractVector{<:Real}, weights::Weights, midpoints::R, dist::UnivariateDistribution) where R<:AbstractRange k = tabulate(data, midpoints, weights) conv(k,dist) From 45b3291662f54dc9dc34e78ae5f65e840707bb16 Mon Sep 17 00:00:00 2001 From: "Tamas K. Papp" Date: Tue, 30 Apr 2024 09:22:13 +0200 Subject: [PATCH 4/4] Update Project.toml patch release --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index e0df42fe..53866d9a 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "KernelDensity" uuid = "5ab0869b-81aa-558d-bb23-cbf5423bbe9b" authors = ["Simon Byrne and various contributors"] -version = "0.6.8" +version = "0.6.9" [deps] Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"