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

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

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

                                        Symmetric Dense Numeric Matrices
                                         对称致密数字矩阵的

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

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

The "dsyMatrix" class is the class of symmetric, dense matrices in non-packed storage and "dspMatrix" is the class of symmetric dense matrices in packed storage.  Only the upper triangle or the lower triangle is stored.
"dsyMatrix"类是对称的,在非包装储存和"dspMatrix"是在包装存储密集对称矩阵类。密集矩阵类只存储上三角或下三角。


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

Objects can be created by calls of the form new("dsyMatrix", ...).
创建对象可以通过电话的形式new("dsyMatrix", ...)。


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




uplo: Object of class "character". Must be
uplo类"character"的对象。必须




x: Object of class "numeric". The numeric
x类"numeric"的对象。数字




Dim,Dimnames: The dimension (a length-2 "integer") and corresponding names (or NULL), see the
Dim,Dimnames:尺寸(长度-2"integer")和(或NULL),看到相应的名称




factors: Object of class "list".  A named
factors类"list"的对象。命名


延伸----------Extends----------

"dsyMatrix" extends class "dgeMatrix", directly, whereas<br> "dspMatrix" extends class "ddenseMatrix", directly.
"dsyMatrix"类"dgeMatrix",直接,而参考"dspMatrix"扩展类"ddenseMatrix",直接延伸。

Both extend class "symmetricMatrix", directly, and class "Matrix" and others, indirectly, use showClass("dsyMatrix"), e.g., for details.
"symmetricMatrix",直接和类都扩展类"Matrix"和其他人,间接使用showClass("dsyMatrix"),例如,有关详情。


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




coerce signature(from = "ddenseMatrix", to = "dgeMatrix")
强制signature(from = "ddenseMatrix", to = "dgeMatrix")




coerce signature(from = "dspMatrix", to = "matrix")
强制signature(from = "dspMatrix", to = "matrix")




coerce signature(from = "dsyMatrix", to = "matrix")
强制signature(from = "dsyMatrix", to = "matrix")




coerce signature(from = "dsyMatrix", to = "dspMatrix")
强制signature(from = "dsyMatrix", to = "dspMatrix")




coerce signature(from = "dspMatrix", to = "dsyMatrix")
强制signature(from = "dspMatrix", to = "dsyMatrix")




norm signature(x = "dspMatrix", type = "character")
规范signature(x = "dspMatrix", type = "character")




norm signature(x = "dsyMatrix", type = "character")
规范signature(x = "dsyMatrix", type = "character")




norm signature(x = "dspMatrix", type = "missing")
规范signature(x = "dspMatrix", type = "missing")




norm signature(x = "dsyMatrix", type = "missing")
规范signature(x = "dsyMatrix", type = "missing")




solve signature(a = "dspMatrix", b = "missing")
解决signature(a = "dspMatrix", b = "missing")




solve signature(a = "dsyMatrix", b = "missing")
解决signature(a = "dsyMatrix", b = "missing")




solve signature(a = "dspMatrix", b = "matrix")
解决signature(a = "dspMatrix", b = "matrix")




solve signature(a = "dsyMatrix", b = "matrix")
解决signature(a = "dsyMatrix", b = "matrix")




t signature(x = "dsyMatrix"): Transpose; swaps from upper triangular to lower triangular storage, i.e., the uplo slot from "U" to "L" or vice versa, the same as for all
Tsignature(x = "dsyMatrix"):移调;从上三角三角存储,即uplo槽以降低从"U""L"或反之亦然,为所有相同互换


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

Classes dgeMatrix and Matrix; solve, norm, rcond, t
类dgeMatrix和Matrix;solve,norm,rcond,t


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


## Only upper triangular part matters (when uplo == "U" as per default)[#只有上三角部分事项(uplo ==为默认的“U”型)]
(sy2 <- new("dsyMatrix", Dim = as.integer(c(2,2)), x = c(14, NA,32,77)))
str(t(sy2)) # uplo = "L", and the lower tri. (i.e. NA is replaced).[uplo =“L”和三低。 (即不适用被替换)。]

chol(sy2) #-&gt; "Cholesky" matrix[ - >“的Cholesky”矩阵]

## Coercing to dpoMatrix gives invalid object:[#胁迫到dpoMatrix使无效的对象:]
sy3 <- new("dsyMatrix", Dim = as.integer(c(2,2)), x = c(14, -1, 2, -7))
try(as(sy3, "dpoMatrix")) # -&gt; error: not positive definite[ - >错误:不正定]


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-24 05:00 , Processed in 0.028518 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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