Math(spam)
Math()所属R语言包:spam
Mathematical functions
数学函数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Applies the Math group functions to 'spam' objects
Math组功能spam对象
用法----------Usage----------
# floor(x)
# exp(x, base = exp(1))
# log(x, base = exp(1))
# sqrt(x)
# abs(x)
# cumprod(x)
# cumsum(x)
# cos(x)
# sin(x)
# tan(x)
# acosh(x)
...
参数----------Arguments----------
参数:x
spam object.
垃圾邮件的对象。
参数:base
positive number. The base with respect to which logarithms are computed. Defaults to e=exp(1).
正数。该碱基与尊重,对数计算。默认为e=exp(1)的。
Details
详细信息----------Details----------
It is important to note that the zero entries do not enter the evaluation. The operations are performed on the stored non-zero elements. This may lead to differences if compared with the same operation on a full matrix. For example, the cosine of sparse matrix is a (full) matrix with many ones.
重要的是要注意,零输入不输入评价。的操作进行所存储的非零元素。这可能导致的差异,如果以相同的操作上的全矩阵相比。例如,余弦稀疏矩阵是一个(全)与许多的矩阵。
Evaluating function resulting in NA/NaN/Inf is possible but the result cannot be used further as NA/NaN/Inf are not meaningful (yet).<br>
评估函数,NA /南/ INF是可能的,但结果不能用于进一步NA /南/ INF是没有意义的(还)。<BR>
值----------Value----------
All functions operate on the vector x@entries and return the result thereof.
所有的功能操作上的向量x@entries,并返回结果。
(作者)----------Author(s)----------
Reinhard Furrer
参见----------See Also----------
Math2
Math2
实例----------Examples----------
getGroupMembers("Math")
mat <- matrix(c( 1,2,0,3,0,0,0,4,5),3)
smat <- as.spam( mat)
cos( mat)
cos( smat)
sqrt( smat)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|