Transform a matrix into probabilities by columns
列的矩阵转换成概率
译者:生物统计家园网 机器人LoveR
描述----------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.
这个函数接受一个矩阵表达式的值(必须大于0),并返回概率矩阵列。这是延森 - 香农的距离,这是一种度量,概率上所需的改造。
用法----------Usage----------
makeprobs(a)
参数----------Arguments----------
参数:a
A matrix of expression values (values must be greater than 0).
一个矩阵表达式的值(值必须大于0)。
Details
详情----------Details----------
To make a matrix of probabilities by row, use t() to transpose prior to calling makeprobs.
要通过行的概率矩阵,用t()之前调用makeprobs转。
值----------Value----------
A matrix of expression probabilities by column.
一列的矩阵表达的概率。