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

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

[复制链接]
发表于 2012-2-17 09:58:17 | 显示全部楼层 |阅读模式
sparseQR-class(Matrix)
sparseQR-class()所属R语言包:Matrix

                                        Sparse QR decomposition of a sparse matrix
                                         稀疏矩阵稀疏QR分解

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

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

Objects of this class represent a QR decomposition of a
这个类的对象代表一个QR分解


Details

详情----------Details----------

The decomposition is of the form A[p+1,] == Q %*% R, if the q slot is of length 0 or A[p+1,q+1] == Q %*% R where A is a sparse m by n matrix (m >= n), R is an m by n matrix that is zero below the main diagonal.  The p slot is a 0-based permutation of 1:m applied to the rows of the original matrix.  If the q slot has length n it is a 0-based permutation of 1:n applied to the columns of the original matrix to reduce the amount of "fill-in" in the matrix R.
分解形式A[p+1,] == Q %*% R如果q槽的长度为0或A[p+1,q+1] == Q %*% R其中A是稀疏m by n矩阵(m >= n) R是m by n矩阵的主对角线以下的零。 p插槽是01:m原始矩阵的行排列。如果q槽长度n它是一个基于1:n适用于原始矩阵的列矩阵中的“填充”的数量减少0置换R。

The matrix Q is a "virtual matrix".  It is the product of n Householder transformations.  The information to generate these Householder transformations is stored in the V and beta slots.
矩阵Q是一个“虚拟矩阵”。是nHouseholder变换的产品。产生这些Householder变换的信息存储在V和beta插槽。

The "sparseQR" methods for the qr.* functions return objects of class "dgeMatrix" (see dgeMatrix).  Results from qr.coef, qr.resid and qr.fitted (when k == ncol(R)) are well-defined and should match those from the corresponding dense matrix calculations.  However, because the matrix Q is not uniquely defined, the results of qr.qy and qr.qty do not necessarily match those from the corresponding dense matrix calculations.
"sparseQR"qr.*的方法,函数返回类对象"dgeMatrix"(见dgeMatrix)。结果从qr.coef,qr.resid和qr.fitted(k == ncol(R))定义,并应符合相应的稠密矩阵计算的。然而,由于矩阵Q是不是唯一的定义,结果qr.qy和qr.qty不一定匹配相应的稠密矩阵计算的。

Also, the results of qr.qy and qr.qty apply to the permuted column order when the q  slot has length n.
此外,qr.qy和qr.qty时q槽长度n适用于置换列顺序的结果。


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

Objects can be created by calls of the form new("sparseQR", ...) but are more commonly created by function qr applied to a sparse matrix such as a matrix of class dgCMatrix.
对象可以创建调用的形式new("sparseQR", ...)但更常见的功能qr应用,如类dgCMatrix矩阵稀疏矩阵的创建。


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




V: Object of class "dgCMatrix".  The columns of V are the vectors that generate the Householder
V类"dgCMatrix"的对象。 V列向量生成户主




beta: Object of class "numeric", the normalizing
beta:Object类的"numeric",正火




p: Object of class "integer": Permutation
p:对象排列:类"integer"




R: Object of class "dgCMatrix" An upper
R:Object类的"dgCMatrix"上




q: Object of class "integer": Permutation applied from the right. Can be of length 0 which implies no
q:从申请权置换:类"integer"对象。可以是长度为0,这意味着没有


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




qr.R signature(qr = "sparseQR"): compute the upper triangular R matrix of the QR decomposition. Note that this currently warns because of possible permutation mismatch with the classical qr.R() result, and you can suppress these warnings by setting options() either "Matrix.quiet.qr.R" or (the more general)
qr.Rsignature(qr = "sparseQR"):计算上三角R QR分解矩阵。请注意,目前这个警告,因为可能与古典qr.R()结果的排列不匹配,可以抑制这些警告,通过设置options()或者"Matrix.quiet.qr.R"或(更一般)




qr.coef signature(qr = "sparseQR", y = "dgeMatrix"): ...
qr.coefsignature(qr = "sparseQR", y = "dgeMatrix")...




qr.coef signature(qr = "sparseQR", y = "matrix"): ...
qr.coefsignature(qr = "sparseQR", y = "matrix")...




qr.coef signature(qr = "sparseQR", y = "numeric"): ...
qr.coefsignature(qr = "sparseQR", y = "numeric")...




qr.fitted signature(qr = "sparseQR", y = "dgeMatrix"): ...
qr.fittedsignature(qr = "sparseQR", y = "dgeMatrix")...




qr.fitted signature(qr = "sparseQR", y = "matrix"): ...
qr.fittedsignature(qr = "sparseQR", y = "matrix")...




qr.fitted signature(qr = "sparseQR", y = "numeric"): ...
qr.fittedsignature(qr = "sparseQR", y = "numeric")...




qr.qty signature(qr = "sparseQR", y = "dgeMatrix"): ...
qr.qtysignature(qr = "sparseQR", y = "dgeMatrix")...




qr.qty signature(qr = "sparseQR", y = "matrix"): ...
qr.qtysignature(qr = "sparseQR", y = "matrix")...




qr.qty signature(qr = "sparseQR", y = "numeric"): ...
qr.qtysignature(qr = "sparseQR", y = "numeric")...




qr.qy signature(qr = "sparseQR", y = "dgeMatrix"): ...
qr.qysignature(qr = "sparseQR", y = "dgeMatrix")...




qr.qy signature(qr = "sparseQR", y = "matrix"): ...
qr.qysignature(qr = "sparseQR", y = "matrix")...




qr.qy signature(qr = "sparseQR", y = "numeric"): ...
qr.qysignature(qr = "sparseQR", y = "numeric")...




qr.resid signature(qr = "sparseQR", y = "dgeMatrix"): ...
qr.residsignature(qr = "sparseQR", y = "dgeMatrix")...




qr.resid signature(qr = "sparseQR", y = "matrix"): ...
qr.residsignature(qr = "sparseQR", y = "matrix")...




qr.resid signature(qr = "sparseQR", y = "numeric"): ...
qr.residsignature(qr = "sparseQR", y = "numeric")...




solve signature(a = "sparseQR", b = "ANY"): simply
解决signature(a = "sparseQR", b = "ANY"):只需


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

qr, qr.Q, qr.R,     qr.fitted, qr.resid, qr.coef, qr.qty,   qr.qy, dgCMatrix, dgeMatrix.
qr,qr.Q,qr.R,qr.fitted,qr.resid,qr.coef,qr.qty,qr.qy,dgCMatrix,dgeMatrix。


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


data(KNex); mm <- KNex$mm
str(mmQR <- qr(mm))


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-23 06:11 , Processed in 0.033048 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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