JSdist: Jensen-Shannon distance on columns

Description Usage Arguments Details Value Note Author(s) References Examples

View source: R/tools.R

Description

JSdist takes a matrix of expression probabilites (calculated directly or output from makeprobs()) and returns a dist object of the pairwise Jensen-Shannon distances between columns

Usage

1
JSdist(mat,...)

Arguments

mat

A matrix of expression probabilities (e.g. from makeprobs())

...

Passthrough argument to as.dist()

Details

Returns pairwise Jensen-Shannon distance (in the form of a dist object) for a matrix of probabilities (by column)

Value

A dist object of pairwise J-S distances between columns.

Note

None

Author(s)

Loyal A. Goff

References

None

Examples

1
2
3
mat<-matrix(sample(1:50,50),10)
probs<-makeprobs(mat)
js.distance<-JSdist(probs)

shiauck/cummeRbund_on_RSQLite2.0 documentation built on May 5, 2019, 12:33 p.m.