Learn R Programming

LPCM (version 0.43)

kernels.and.distances: Auxilary kernel and distance functions.

Description

Internal LPCM functions which are normally not to be called by the user.

Usage

kern(y, x = 0, h = 1)
kernd(X, x, h)
kdex(X, x, h)
distancevector(X, y, d = "euclid", na.rm = TRUE)
vecdist(X,Y)
mindist(X,y)
enorm(x)

Arguments

x
a number or vector.
y
a vector.
h
a bandwidth.
X
a matrix.
Y
a matrix.
d
type of distance measure (only `euclid').
na.rm
...

Details

kern specifies the base kernel (by default Gaussian) used in lpc ; kernd is the corresponding multivariate product kernel. kdex is a pointwise multivariate kernel density estimator. distancevector makes use of function vdisseuclid from Rpackage hopach (but that package does not need to be loaded).

References

Pollard, van der Laan, and Wall (2010). Hierarchical Ordered Partitioning and Collapsing Hybrid (HOPACH). Rpackage hopach version 2.9.1.