Skip to content

demoKde

Kernel Density Estimation for Demonstration Purposes

v1.0.1 · Aug 19, 2023 · GPL-2

Description

Demonstration code showing how (univariate) kernel density estimates are computed, at least conceptually, and allowing users to experiment with different kernels, should they so wish. The method used follows directly the definition, but gains efficiency by replacing the observations by frequencies in a very fine grid covering the sample range. A canonical reference is B. W. Silverman, (1998) <doi: 10.1201/9781315140919>. NOTE: the density function in the stats package uses a more sophisticated method based on the fast Fourier transform and that function should be used if computational efficiency is a prime consideration.

Downloads

CRAN

377

Last 30 days

11549th

1K

Last 90 days

4.5K

Last year

Trend: +9.9% (30d vs prior 30d)

r2u CRAN

1

Last 30 days

26

Last 90 days

102

Last year

Trend: -90.9% (30d vs prior 30d)

autoCRAN

1

Last 7 days

2

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

2 NOTE
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Bill Venables <Bill.Venables@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Bill",
                    family = "Venables",
                    role = c("aut", "cre"),
                    email = "bill.venables@gmail.com")
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Bill Venables <Bill.Venables@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Bill",
                    family = "Venables",
                    role = c("aut", "cre"),
                    email = "bill.venables@gmail.com")
as necessary.

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Bill Venables <Bill.Venables@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Bill",
                    family = "Venables",
                    role = c("aut", "cre"),
                    email = "bill.venables@gmail.com")
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Bill Venables <Bill.Venables@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Bill",
                    family = "Venables",
                    role = c("aut", "cre"),
                    email = "bill.venables@gmail.com")
as necessary.

Code

Structure

Lines of code

318

Files

8

Compiled share

0%

Has compiled src

No

Language breakdown

R 76 (23.9%)Docs 242 (76.1%)

API

Exported functions

13

Internal functions

0

Recent export changes

v0.9-1+1 pattern:^[[:alpha:]]+

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

\dontrun example ratio

0%

Roxygen coverage

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

5

First release

2013-10-20

Latest release

2023-08-20

Avg cadence

1036 days

Cold removal rate

Dep drift

0

LOC over versions

v0.9-1: 290 LOCv0.9-3: 303 LOCv0.9-4: 303 LOCv1.0.0: 317 LOCv1.0.1: 318 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (1)

imports

Dependency Network

Dependencies Reverse dependencies MASSExtra demoKde

Version History

6 tracked
new 1.0.1 Mar 10, 2026
updated 1.0.1 ← 1.0.0 diff Aug 19, 2023
updated 1.0.0 ← 0.9-4 diff Feb 25, 2021
updated 0.9-4 ← 0.9-3 diff Jan 31, 2017
updated 0.9-3 ← 0.9-1 diff Nov 22, 2013
new 0.9-1 Oct 19, 2013