KLD.matrix {bioDist} | R Documentation |
Calculate KLD by estimating by smoothing log( f(x)/g(x))*f(x) and then integrating.
KLD.matrix(x, method = c("locfit", "density"), supp = c(-3, 3), subdivisions = 1000, diag = FALSE, upper = FALSE)
x |
n by p matrix |
method |
use locfit or density to estimate integrand |
supp |
upper and lower limits of the integral |
subdivisions |
subdivisions for the integration |
diag |
if TRUE, diagonal of the distance matrix will be displayed |
upper |
if TRUE, upper triangle of the distance matrix will be displayed |
The pairwise distances between the rows of x
are computed.
An object of class dist
with the pairwise, between rows,
Kullback-Leibler distances.
Beiying Ding, Vincent Carey
cor.dist
, spearman.dist
,
tau.dist
, dist
,
KLdist.matrix
,mutualInfo
x <- matrix(rnorm(100),nrow=5) KLD.matrix(x, method="locfit",supp=range(x))