KLdist.matriX | R Documentation |
Calculate the KLD by binning continuous data.
KL distance is calculated using the formula
KLD(f_1(x),f_2(x)) = \sum_{i=1}^N{
f_1(x_i)*\log\frac{f_1(x_i)}{f_2(x_i)}}
KLdist.matrix(x, ...)
x |
n by p matrix or a list or an object of a class that extends eSet.
If x is an object of a class derived from eSet (ExpressionSet,SnpSet etc),
then the values returned by the |
... |
arguments passed to
|
The data are binned, and then the KL distance between the two discrete
distributions is computed and used. The distance is computed between
rows of the input matrix (except if the input is an object of a class
that extends eSet and sample
is TRUE
.
The presumption is that all samples have the same number of observations. The list method is meant for use when samples sizes are unequal.
An object of class dist
is returned.
Beiying Ding
cor.dist
, spearman.dist
,
tau.dist
,euc
,
man
,KLD.matrix
,mutualInfo
x <- matrix(rnorm(100), nrow = 5)
KLdist.matrix(x, symmetrize = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.