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

R语言 SpatioTemporal包 sumLogDiag()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 13:06:43 | 显示全部楼层 |阅读模式
sumLogDiag(SpatioTemporal)
sumLogDiag()所属R语言包:SpatioTemporal

                                         Sum the Logarithm of Diagonal Elements
                                         总结的对数的对角线元素

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

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

Computes the sum of the logarithm of the diagonal elements in a matrix. This corresponds to the logarithm of the determinant for a Cholesky factor. Behaviour is undefined for any elements that are <=0.
计算矩阵中的对角元素的对数的总和。这对应的行列式的Cholesky因子的对数。行为是未定义的任何元素<= 0。


用法----------Usage----------


sumLogDiag(mat)



参数----------Arguments----------

参数:mat
A square matrix (preferably a Cholesky factor).  
一方阵(最好是Cholesky因子)。


值----------Value----------

Sum of the logarithm of the diagonal elements.
的对角元素的对数的总和。


(作者)----------Author(s)----------



Johan Lindstr枚m




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

chol or makeCholBlock for computation of Cholesky factors.
chol或makeCholBlock计算的Cholesky因素。

Other block matrix functions dot.prod,  block.mult, calc.tF.times.mat,  and <br> calc.iS.X.
其他分块矩阵的功能dot.prod,block.mult,calc.tF.times.mat,和<br>calc.iS.X。

This function is used by loglike.
此功能使用loglike。


实例----------Examples----------


#Create a covariance matrix[创建的协方差矩阵]
S <- cbind(c(2,1),c(1,2))
#compute Cholesky factor[计算Cholesky因子]
R <- chol(S)
#compute determinant[计算行列式]
log(det(R))
#compare with sum of the logarithm of diagonal elements[与对角元素的对数的总和进行比较]
sumLogDiag(R)


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-12 19:32 , Processed in 0.022739 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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