找回密码
 注册
查看: 346|回复: 0

R语言 spam包 spam-class()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 12:23:58 | 显示全部楼层 |阅读模式
spam-class(spam)
spam-class()所属R语言包:spam

                                        Class "spam"
                                         类“垃圾邮件”

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

The spam class is a representation of sparse matrices.
spam类是一个稀疏矩阵表示。


类对象----------Objects from the Class----------

Objects can be created by calls of the form new("spam", entries, colindices,     rowpointes, dimension). The standard "old Yale sparse format" is used to store sparse matrices.<br> The matrix x is stored in row form.  The first element of row i is x@rowpointers[i]. The length of row i is determined by x@rowpointers[i+1]-x@rowpointers[i]. The column indices of x are stored in the x@colindices vector. The column index for element x@entries[k] is
可以创建对象通过调用的形式new("spam", entries, colindices,     rowpointes, dimension)。标准的“旧耶鲁sparse格式”是用来存储稀疏矩阵。参考矩阵x存储行中的形式。行i的第一个元素是x@rowpointers[i]。行i的长度是由x@rowpointers[i+1]-x@rowpointers[i]。 x列索引存储在x@colindices矢量。列索引的元素x@entries[k]


插槽----------Slots----------




entries: Object of class "numeric" contains the
entries:对象的类"numeric"包含




colindices: Object of class "integer" ordered indices
colindices:类的对象"integer"有序索引




rowpointers: Object of class "integer" pointer to the beginning
rowpointers:对象类"integer"指针开始




dimension: Object of class "integer" specifying
dimension:类的对象"integer"指定


方法----------Methods----------




as.matrix signature(x = "spam"): transforming a sparse
as.matrix signature(x = "spam"):转换稀疏




as.spam signature(x = "spam"):
as.spamsignature(x = "spam"):




[<- signature(x = "spam", i,j, value): assigning a
[< - signature(x = "spam", i,j, value):分配




[ signature(x = "spam", i, j): subsetting a
[signature(x = "spam", i, j):子集一




%*% signature(x, y): matrix multiplication, all combinations of sparse with full
%*%signature(x, y):矩阵相乘,稀疏的所有组合




c signature(x = "spam"): vectorizes the sparse matrix and takes account of the zeros. Hence
Csignature(x = "spam"):矢量稀疏矩阵,并考虑到零。故




cbind signature(x = "spam"): binds sparse matrices, see cbind for details.
CBINDsignature(x = "spam"):稀疏矩阵绑定,请参阅cbind的详细信息。




chol signature(x = "spam"):
哲signature(x = "spam"):




diag signature(x = "spam"):
诊断signature(x = "spam"):




dim<- signature(x = "spam"): truncates or augments
昏暗< - signature(x = "spam"):截断或增强




dim signature(x = "spam"): gives the dimension of the
昏暗的signature(x = "spam"):给出的尺寸




image signature(x = "spam"):
图像signature(x = "spam"):




display signature(x = "spam"):
显示signature(x = "spam"):




length<- signature(x = "spam"): Is not implemented and
长度< - “signature(x = "spam"):不落实,




length signature(x = "spam"): gives the number of
长度signature(x = "spam")给出的数字




lower.tri signature(x = "spam"): see lower.tri for details.
lower.tri signature(x = "spam"):看lower.tri的详细信息。




Math signature(x = "spam"): see Math for details.
数学signature(x = "spam"):见Math的详细信息。




Math2 signature(x = "spam"): see Math2 for details.
MATH2signature(x = "spam"):看Math2的详细信息。




norm signature(x = "spam"): calculates the norm of a matrix.
规范signature(x = "spam"):计算矩阵的规范。




plot signature(x = "spam", y): same functionality as
图signature(x = "spam", y):相同的功能




print signature(x = "spam"): see print for details.
打印signature(x = "spam"):看到print的详细信息。




rbind signature(x = "spam"): binds sparse
rbind signature(x = "spam"):结合稀疏




solve signature(a = "spam"): see solve for details.
解决signature(a = "spam"):看到solve的详细信息。




summary signature(object = "spam"): small summary
总结signature(object = "spam"):小总结




Summary signature(x = "spam"): All functions of the Summary class (like min, max, range...) operate on the vector x@entries and return the result thereof. See Examples or Summary for details.
摘要signature(x = "spam")的Summary类(如min,max,range...)向量x@entries:所有功能和其结果返回。的示例,请参见Summary的详细信息。




t signature(x = "spam"): transpose of a sparse matrix.
Tsignature(x = "spam"):一个稀疏矩阵的转置。




upper.tri signature(x = "spam"): see lower.tri for details.
upper.tri signature(x = "spam"):看lower.tri的详细信息。


Details

详细信息----------Details----------

The compressed sparse row (CSR) format is often described with the vectors a, ia, ja. To be a bit more comprehensive, we have chosen longer slot names.
压缩稀疏行(CSR)的格式通常被描述的向量a,ia,ja。要更全面一点,我们选择了较长的插槽名称。


注意----------Note----------

The slots colindices and rowpointers are tested for proper integer assignments. This is not true for entries.
插槽colindices和rowpointers测试适当的整数分配。为entries,这是不正确的。


(作者)----------Author(s)----------


Reinhard Furrer, some of the Fortran code is based on A. George,
J. Liu, E. S. Ng, B.W Peyton and Y. Saad (alphabetical)



实例----------Examples----------


showMethods("as.spam")


smat <- diag.spam(runif(15))
range(smat)
cos(smat)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-10 04:39 , Processed in 0.030614 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表