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

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

[复制链接]
发表于 2012-2-16 18:15:53 | 显示全部楼层 |阅读模式
nMatrix-class(Matrix)
nMatrix-class()所属R语言包:Matrix

                                        Class "nMatrix" of Non-zero Pattern Matrices
                                         类的“nMatrix”非零模式矩阵

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

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

The nMatrix class is the virtual “mother” class of all non-zero pattern (or simply pattern) matrices in the Matrix package.
nMatrix类是虚拟的“母亲”的所有非零模式(简单模式)Matrix包中的矩阵类。


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

Common to all matrix object in the package:
常见的包中所有的矩阵对象:




Dim: Object of class "integer" - the dimensions of the matrix - must be an integer vector with exactly two
Dim"integer" - 矩阵的尺寸 - 必须是一个整数向量正好有两个:对象类




Dimnames: list of length two; each component containing NULL or a character vector length
Dimnames:长度为二的名单;每个组件包含NULL或一个character向量的长度


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

There is a bunch of coercion methods (for as(..)), e.g.,
有一堆的胁迫方法(as(..)),例如,




coerce signature(from = "nMatrix", to = "matrix"): ...
要挟signature(from = "nMatrix", to = "matrix")...




coerce signature(from = "nMatrix", to = "dMatrix"): ...
要挟signature(from = "nMatrix", to = "dMatrix")...




coerce signature(from = "nMatrix", to = "lMatrix"): ...
要挟signature(from = "nMatrix", to = "lMatrix")...




coerce signature(from = "matrix", to = "nMatrix"): Note that these coercions (must) coerce NAs to non-zero, hence conceptually TRUE. This is particularly important when sparseMatrix objects are coerced to "nMatrix" and hence to nsparseMatrix.
强制signature(from = "matrix", to = "nMatrix"):注意,这些强制(必须)强迫NA的非零,因此概念TRUE。强制sparseMatrix,因此"nMatrix"nsparseMatrix对象时,这一点尤为重要。




coerce signature(from = "dMatrix", to = "nMatrix"): ...
要挟signature(from = "dMatrix", to = "nMatrix")...




coerce signature(from = "lMatrix", to = "nMatrix"): ...
要挟signature(from = "lMatrix", to = "nMatrix")...

. Additional methods contain group mehods, such as
。其他方法包含组如mehods,




Ops signature(e1 = "nMatrix", e2 = "...."), ...
OPSsignature(e1 = "nMatrix", e2 = "...."),...




Arith signature(e1 = "nMatrix", e2 = "...."), ...
arithsignature(e1 = "nMatrix", e2 = "...."),...




Compare signature(e1 = "nMatrix", e2 = "...."), ...
比较signature(e1 = "nMatrix", e2 = "...."),...




Logic signature(e1 = "nMatrix", e2 = "...."), ...
逻辑signature(e1 = "nMatrix", e2 = "...."),...




Summary signature(x = "nMatrix", "...."), ...
摘要signature(x = "nMatrix", "...."),...


参见----------See Also----------

The classes lMatrix, nsparseMatrix, and the mother class, Matrix.
类lMatrix,:nsparseMatrix,和母亲类,Matrix。


举例----------Examples----------


getClass("nMatrix")

L3 <- Matrix(upper.tri(diag(3)))
L3 # an "ltCMatrix"[“ltCMatrix”]
as(L3, "nMatrix") # -&gt; ntC*[ - > NTC *]

## similar, not using Matrix()[#类似,不使用矩阵()]
as(upper.tri(diag(3)), "nMatrix")# currently "ngTMatrix"[目前“ngTMatrix”]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-23 12:17 , Processed in 0.022677 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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