cleanup(spam)
cleanup()所属R语言包:spam
Cleaning up sparse matrices
清理稀疏矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Eliminates an zeros in a sparse matrix.
一个稀疏矩阵中消除了一个零。
用法----------Usage----------
cleanup(x, eps = .Spam$eps)
参数----------Arguments----------
参数:x
a sparse matrix of class spam.
一个稀疏矩阵类spam。
参数:eps
numeric scalar > 0. Smaller entries are coerced to zero.
数字标量> 0。规模较小的项目被强制为0。
Details
详细信息----------Details----------
A sparse matrix may still contain zeros. This function (aliased to as.spam) filters these values.<br> This often causes confusion when testing such matrices for symmetry or comparing apparently equal matrices with all.equal (see "Examples" below.
稀疏矩阵仍可能包含零。此功能(化名as.spam)筛选这些值。参考这往往导致混乱测试时,这样的矩阵为对称或比较显然是相等的矩阵all.equal(见下面范例。
(作者)----------Author(s)----------
Reinhard Furrer
参见----------See Also----------
isSymmetric.spam and all.equal.spam.
isSymmetric.spam和all.equal.spam。
实例----------Examples----------
A <- diag.spam(2)
A[1,2] <- 0
all.equal(A, t(A))
isSymmetric.spam(A)
all.equal(cleanup(A), diag.spam(2))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|