make.gaussian(SamplerCompare)
make.gaussian()所属R语言包:SamplerCompare
Gaussian distribution objects
高斯分布对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Gaussian distribution objects
高斯分布对象
用法----------Usage----------
N2weakcor.dist
N4poscor.dist
N4negcor.dist
参数----------Arguments----------
参数:mean
The mean of the distribution as a numeric vector; implicitly specifies the dimension.
的平均值作为一个数值向量的分布;隐式指定维度。
参数:sigma
The covariance of the distribution.
协方差的分布。
参数:rho
The marginal correlations between parameters.
的边缘参数之间的相关性。
Details
详细信息----------Details----------
make.gaussian returns a distribution object representing a multivariate normal distribution. If sigma is specified, that is taken to be its covariance. Otherwise, if rho is specified, the covariance is taken to be a matrix with ones on the diagonal and rho on the off-diagonal elements. To preserve positive definiteness, rho must be between -1/(length(mean)-1) and 1.
make.gaussian返回一个对象,表示一个多元正态分布的分布。如果sigma指定,即是其协方差。否则,如果rho指定,协方差矩阵的对角线上的和rho的非对角线元素。要保持正定性,rho是-1/(length(mean)-1)和1之间。
N2weakcor.dist, N4poscor.dist, and N4negcor.dist are predefined distributions generated with make.gaussian. They are intended to be used as test cases with compare.samplers. The examples below show how they are defined. N2weakcor.dist is a weakly positively correlated two-dimensional Gaussian. N4poscor.dist is a highly positively correlated four-dimensional Gaussian. N4negcor.dist is a highly negatively correlated four-dimensional Gaussian. N4poscor.dist and N4negcor.dist are similarly conditioned, but N4poscor.dist has one large eigenvalue and three small ones, while N4negcor.dist has one small eigenvalue and three large ones.
N2weakcor.dist,N4poscor.dist和N4negcor.dist是预定义的分布产生的make.gaussian。他们的目的是作为测试用例compare.samplers。下面的例子展示如何被定义的。 N2weakcor.dist是弱正相关的二维高斯。 N4poscor.dist是一个高度正相关的四维高斯。 N4negcor.dist是一个四维高斯呈高度负相关。 N4poscor.dist和N4negcor.dist同样条件,但N4poscor.dist有一个大的特征值和三个小的,而N4negcor.dist有一个小的特征值和三个大的。
参见----------See Also----------
compare.samplers, make.dist
compare.samplers,make.dist
实例----------Examples----------
N2weakcor.dist <- make.gaussian(c(0,0), rho=0.8)
N4poscor.dist <- make.gaussian(c(1,2,3,4), rho=0.999)
N4negcor.dist <- make.gaussian(c(1,2,3,4), rho=-0.3329)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|