makeprobs: Transform a matrix into probabilities by columns

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

View source: R/tools.R

Description

This function takes a matrix of expression values (must be greater than 0) and returns a matrix of probabilities by column. This is a required transformation for the Jensen-Shannon distance which is a metric that operates on probabilities.

Usage

1

Arguments

a

A matrix of expression values (values must be greater than 0).

Details

To make a matrix of probabilities by row, use t() to transpose prior to calling makeprobs.

Value

A matrix of expression probabilities by column.

Note

None

Author(s)

Loyal A. Goff

References

None

Examples

1
2
myMat<-matrix(sample(1:50,50),10)
probs<-makeprobs(myMat)

cummeRbund documentation built on Nov. 8, 2020, 7:53 p.m.