bw_lcv_min_epa | R Documentation |
This function computes the minimum bandwidth allowed in likelihood cross-validation with Epanechnikov kernels, for a given dataset and dimension.
bw_lcv_min_epa(X, d, kernel_type = c("prod", "sph")[1])
X |
a matrix of size |
d |
vector of size |
kernel_type |
type of kernel employed: |
The minimum bandwidth allowed.
n <- 5
d <- 1:3
X <- r_unif_polysph(n = n, d = d)
h_min <- rep(bw_lcv_min_epa(X = X, d = d), length(d))
log_cv_kde_polysph(X = X, d = d, h = h_min - 1e-4, kernel = 2) # Problem
log_cv_kde_polysph(X = X, d = d, h = h_min + 1e-4, kernel = 2) # OK
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.