isSymmetric(spam)
isSymmetric()所属R语言包:spam
Test if a spam matrix is Symmetric
垃圾邮件矩阵的测试,如果是对称的
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Efficient function to test if 'object' is symmetric or not.
有效的功能测试,如果“对象”是对称的或不。
用法----------Usage----------
# isSymmetric.spam(object, ...)
## S3 method for class 'spam'
参数----------Arguments----------
参数:object
a spam matrix.
一个spam矩阵。
参数:tol
numeric scalar >= 0. Smaller differences are not considered, see all.equal.spam.
数字标量> = 0。不考虑差异较小,请参阅all.equal.spam。
参数:...
further arguments passed to all.equal.spam.
进一步的参数传递给all.equal.spam。
Details
详细信息----------Details----------
symmetry is assessed by comparing the sparsity structure of object and t(object) via the function all.equal.spam. If a difference is detected, the matrix is
对称评估的比较稀疏结构的功能objectt(object)和all.equal.spam通过。如果检测到的差,该矩阵是
值----------Value----------
logical indicating if object is symmetric or not.
逻辑object如果是对称的或不。
(作者)----------Author(s)----------
Reinhard Furrer
参见----------See Also----------
all.equal.spam, cleanup.
all.equal.spam,cleanup。
实例----------Examples----------
obj <- diag.spam(2)
isSymmetric(obj)
obj[1,2] <- .Machine$double.eps
isSymmetric(obj)
all.equal(obj, t(obj))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|