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

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

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

                                        (Virtual) Class "dMatrix" of "double" Matrices
                                         (虚拟)类“的”双重“矩阵”dMatrix

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

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

The dMatrix class is a virtual class contained by all actual classes of numeric matrices in the Matrix package.  Similarly, all the actual classes of logical matrices inherit from the lMatrix class.
类dMatrix是一个虚拟所有Matrix包中的数字矩阵的实际类中的类。同样,所有的逻辑矩阵的实际类继承自lMatrix类。


插槽----------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 are (relatively simple) group methods (see, e.g., Arith)
有组(相对简单)的方法(例如,见Arith)




Arith signature(e1 = "dMatrix", e2 = "dMatrix"): ...
arithsignature(e1 = "dMatrix", e2 = "dMatrix")...




Arith signature(e1 = "dMatrix", e2 = "numeric"): ...
arithsignature(e1 = "dMatrix", e2 = "numeric")...




Arith signature(e1 = "numeric", e2 = "dMatrix"): ...
arithsignature(e1 = "numeric", e2 = "dMatrix")...




Math signature(x = "dMatrix"): ...
数学signature(x = "dMatrix"):...




Math2 signature(x = "dMatrix", digits = "numeric"):
math2signature(x = "dMatrix", digits = "numeric"):




Compare signature(e1 = "numeric", e2 = "dMatrix"): ...
比较signature(e1 = "numeric", e2 = "dMatrix"):...




Compare signature(e1 = "dMatrix", e2 = "numeric"): ...
比较signature(e1 = "dMatrix", e2 = "numeric"):...




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




Summary signature(x = "dMatrix"): The "Summary" group contains the seven functions max(), min(), range(), prod(), sum(),
摘要signature(x = "dMatrix"):"Summary"组包含七大功能max(),min(),range(),prod(),sum()

The following methods are also defined for all double matrices:
下面的方法也被定义为所有的双矩阵:




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




expm signature(x = "dMatrix"): computes the
expmsignature(x = "dMatrix"):计算




zapsmall signature(x = "dMatrix"): ...
zapsmallsignature(x = "dMatrix")...

The following methods are defined for all logical matrices:
被定义为所有逻辑矩阵下列方法:




which signature(x = "lsparseMatrix") and many other subclasses of "lMatrix": as the base function which(x, arr.ind) returns the indices of the TRUE entries in x; if arr.ind is true,
signature(x = "lsparseMatrix")"lMatrix"和许多其他的子类:base函数如果which(x, arr.ind)返回TRUE的x项指标; arr.ind是真实的,


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

The nonzero-pattern matrix class nMatrix, which can be used to store non-NA logical matrices even more compactly.
模式的非零矩阵类nMatrix,它可以用来储存非NAlogical矩阵更紧凑。

The numeric matrix classes dgeMatrix, dgCMatrix, and Matrix.
数字矩阵类dgeMatrix,dgCMatrix,Matrix。


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


showClass("dMatrix")

set.seed(101)
round(Matrix(rnorm(28), 4,7), 2)
(M <- zapsmall(Matrix(rlnorm(56, sd=10), 4,14)))
table(as.logical(M == 0))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-7 13:19 , Processed in 0.025917 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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