KLdist.matrix {bioDist}R Documentation

Discrete version of Kullback-Leibler Distance (KLD)

Description

Calculate KLD by binning

Usage

KLdist.matrix(x, nbin = 10, symmetrize = FALSE, diag = FALSE, upper = FALSE)

Arguments

x n by p matrix
nbin number of bins to calculate discrete probabilities
symmetrize if TRUE, then symmetrize
diag if TRUE, diagonal of the distance matrix will be displayed
upper if TRUE, upper triangle of the distance matrix will be displayed

Details

Value

Pairwsie KLD object

Author(s)

Beiying Ding

See Also

cor.dist, spearman.dist, tau.dist,euc, man,KLD.matrix,mutualInfo

Examples

 x <- matrix(rnorm(100), nrow=5)
 KLdist.matrix(x,symmetrize=TRUE, nbin=3) 

[Package bioDist version 1.2.0 Index]