dpoMatrix-class(Matrix)
dpoMatrix-class()所属R语言包:Matrix
Positive Semi-definite Dense Numeric Matrices
半正定密集的数字矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The "dpoMatrix" class is the class of positive-semidefinite symmetric matrices in nonpacked storage. The "dppMatrix" class is the same except in packed storage. Only the upper triangle or the lower triangle is required to be available.
类"dpoMatrix"是积极nonpacked存储半正定对称矩阵类。 类"dppMatrix"是相同的,除了在包装存储。只有上三角或下三角必须是可用的。
The "corMatrix" class extends "dpoMatrix" with a slot sd.
"corMatrix"类扩展插槽"dpoMatrix"sd。
类的对象----------Objects from the Class----------
Objects can be created by calls of the form new("dpoMatrix", ...) or from crossprod applied to
通过形式new("dpoMatrix", ...)从crossprod适用于电话或可以创建对象
插槽----------Slots----------
uplo: Object of class "character". Must be
uplo类"character"的对象。必须
x: Object of class "numeric". The numeric
x类"numeric"的对象。数字
Dim: Object of class "integer". The dimensions of the matrix which must be a two-element vector of non-negative
Dim类"integer"的对象。它必须是一个非负的两个元素的向量矩阵的尺寸
Dimnames: inherited from class "Matrix"
Dimnames:继承自类"Matrix"
factors: Object of class "list". A named
factors类"list"的对象。命名
sd: (for "corMatrix") a numeric vector of length n containing the (original) sqrt(var(.)) entries which allow
sd("corMatrix")numeric长度的向量n包含(原件)sqrt(var(.))项,使
延伸----------Extends----------
Class "dsyMatrix", directly.<br> Classes "dgeMatrix", "symmetricMatrix", and many more by class "dsyMatrix".
类"dsyMatrix",直接参考类"dgeMatrix","symmetricMatrix",许多类的更多"dsyMatrix"。
方法----------Methods----------
chol signature(x = "dpoMatrix"): Returns (and stores) the Cholesky decomposition of x, see
哲signature(x = "dpoMatrix"):返回(店)x,看到的Cholesky分解
rcond signature(x = "dpoMatrix", norm = "character"): Returns (and stores) the reciprocal of the condition number of x. The norm can be "O" for the one-norm (the default) or "I" for the infinity-norm. For
rcondsignature(x = "dpoMatrix", norm = "character"):返回(店)x的条件数的倒数。可以norm"O"一个规范(默认)或"I"无穷范数。为
solve signature(a = "dpoMatrix", b = "missing"):
解决signature(a = "dpoMatrix", b = "missing"):
solve signature(a = "dpoMatrix", b = "numeric"): Solve the linear system defined by a and b, where b can be a numeric vector, or a matrix, or a dgeMatrix object. The Cholesky decomposition of a is calculated (if
解决signature(a = "dpoMatrix", b = "numeric"):求解线性系统的定义a和b,b可以是一个数值向量或矩阵,或dgeMatrix对象。 a Cholesky分解计算(如果
Arith signature(e1 = "dpoMatrix", e2 = "numeric") (and quite a few other signatures): The result of (“elementwise” defined) arithmetic operations is typically not positive-definite anymore. The only exceptions, currently, are multiplications, divisions or additions with positive
arithsignature(e1 = "dpoMatrix", e2 = "numeric")(和不少其他签名):(“的elementwise”的定义)的算术运算的结果通常是不正定了。唯一的例外,目前,乘法,除法或积极增加
参见----------See Also----------
Classes dsyMatrix and dgeMatrix; further, Matrix, rcond, chol, solve, crossprod.
类dsyMatrix和dgeMatrix;进一步,Matrix,rcond,chol,solve,crossprod。
举例----------Examples----------
h6 <- Hilbert(6)
rcond(h6)
str(h6)
h6 * 27720 # is ``integer''[整数]
solve(h6)
str(hp6 <- as(h6, "dppMatrix"))
### Note that as(*, "corMatrix") *scales* the matrix[##注意,(*,“corMatrix”)*规模矩阵]
(ch6 <- as(h6, "corMatrix"))
stopifnot(all.equal(h6 * 27720, round(27720 * h6), tol = 1e-14),
all.equal(ch6@sd^(-2), 2*(1:6)-1, tol= 1e-12))
chch <- chol(ch6)
stopifnot(identical(chch, ch6@factors$Cholesky),
all(abs(crossprod(chch) - ch6) < 1e-10))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|