map(flowMerge)
map()所属R语言包:flowMerge
Map matrix of probabilities to class assignments.
图矩阵类任务的概率。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Traverse the rows of a matrix of probabilities of size n x k, where the n rows are samples, and the k columns are the probability of assignment of the sample to each of k classes. The most probable class assignment is selected for each row and a vector of classes is returned.
遍历的大小nxk,概率矩阵的行n行的样本,k列的k类的样本分配的概率。最有可能的课堂作业被选中的每一行,并返回类的向量。
用法----------Usage----------
map(z, ...)
参数----------Arguments----------
参数:z
A matrix of probabilities.
概率矩阵。
参数:...
Additional arguments, not currently used.
额外的参数,而不是目前使用的。
值----------Value----------
A vector of class assignments of lenght n.
一个向量长度n课堂作业。
作者(S)----------Author(s)----------
Greg Finak <greg.finak@ircm.qc.ca>, Raphael Gottardo <raphael.gottardo@ircm.qc.ca>
举例----------Examples----------
z<-t(apply(t(replicate(100,rgamma(5,0.1,1))),1,function(x)x/sum(x)));
map(z);
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|