log_cv_kde_polysph | R Documentation |
Computes the logarithm of the cross-validated kernel density
estimator: \log \hat{f}_{-i}(\boldsymbol{X}_i;\boldsymbol{h})
,
i = 1, \ldots, n.
log_cv_kde_polysph(X, d, h, weights = as.numeric(c()), wrt_unif = FALSE,
normalized = TRUE, intrinsic = FALSE, norm_X = FALSE, kernel = 1L,
kernel_type = 1L, k = 10)
X |
a matrix of size |
d |
vector of size |
h |
vector of size |
weights |
weights for each observation. If provided, a vector of size
|
wrt_unif |
flag to return a density with respect to the uniform
measure. If |
normalized |
flag to compute the normalizing constant of the kernel
and include it in the kernel density estimator. Defaults to |
intrinsic |
use the intrinsic distance, instead of the
extrinsic-chordal distance, in the kernel? Defaults to |
norm_X |
ensure a normalization of the data? Defaults to |
kernel |
kernel employed: |
kernel_type |
type of kernel employed: |
k |
softplus kernel parameter. Defaults to |
A column vector of size c(n, 1)
with the evaluation of the
logarithm of the cross-validated kernel density estimator.
# Simple check on S^1 x S^2
n <- 5
d <- c(1, 2)
h <- c(0.2, 0.2)
X <- r_unif_polysph(n = n, d = d)
log_cv_kde_polysph(X = X, d = d, h = h)
kde_polysph(x = X[1, , drop = FALSE], X = X[-1, ], d = d, h = h, log = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.