eff_kern {polykde} | R Documentation |
Polyspherical kernel moments and efficiencies
Description
Computes moments of kernels on \mathcal{S}^{d_1} \times
\cdots \times \mathcal{S}^{d_r}
and efficiencies of kernels on
(\mathcal{S}^d)^r
.
Usage
eff_kern(d, r, k = 10, kernel, kernel_type = c("prod", "sph")[1],
kernel_ref = "2", kernel_ref_type = c("prod", "sph")[2], ...)
b_d(kernel, d, k = 10, kernel_type = c("prod", "sph")[1], ...)
v_d(kernel, d, k = 10, kernel_type = c("prod", "sph")[1], ...)
Arguments
d |
a scalar with the common dimension of each sphere
|
r |
a scalar with the number of polyspheres of the same dimension. |
k |
softplus kernel parameter. Defaults to |
kernel |
kernel employed: |
kernel_type |
type of kernel. Must be either |
kernel_ref |
reference kernel to which compare the efficiency. Uses the
same codification as the |
kernel_ref_type |
type of the reference kernel. Must be either
|
... |
further arguments passed to |
Value
b_d
: a vector with the first kernel moment on each sphere (common ifkernel_type = "sph"
).v_d
: a vector with the second kernel moment ifkernel_type = "prod"
, or a scalar ifkernel_type = "sph"
.eff_kern
: a scalar with the kernel efficiency.
Examples
# Kernel moments
b_d(kernel = 2, d = c(2, 3), kernel_type = "prod")
v_d(kernel = 2, d = c(2, 3), kernel_type = "prod")
b_d(kernel = 2, d = c(2, 3), kernel_type = "sph")
v_d(kernel = 2, d = c(2, 3), kernel_type = "sph")
# Kernel efficiencies
eff_kern(d = 2, r = 1, kernel = "1")
eff_kern(d = 2, r = 1, kernel = "2")
eff_kern(d = 2, r = 1, k = 10, kernel = "3")