getConfEll(shotGroups)
getConfEll()所属R语言包:shotGroups
Confidence ellipse
置信椭圆
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Gives the 2D-confidence ellipse under the assumption of bivariate normality. Also includes the ellipse based on a robust estimate for the covariance matrix of the (x,y)-coordinates.
二元正态性的假设下,给出了二维置信椭圆。此外,还包括一个健壮的基础上估计的协方差矩阵的(x,y)的坐标的椭圆。
用法----------Usage----------
getConfEll(xy, level = 0.5, dstTarget = 25, conversion = 'm2cm')
参数----------Arguments----------
参数:xy
a numerical (n x 2)-matrix with the (x,y)-coordinates of n points (1 row of coordinates per point).
数值(为nx 2)矩阵的n个点(1行的每点的坐标)的(x,y)的坐标。
参数:level
a numerical value with the coverage for the confidence ellipse.
一个数值的信心椭圆的覆盖范围。
参数:dstTarget
a numerical value with the distance to the target in MOA calculation. See getMOA.
在氧化锌避雷器计算到目标的距离的数值。见getMOA。
参数:conversion
how to convert the measurement unit for distance to target to that of the (x,y)-coordinates in MOA calculation. See getMOA.
如何转换的测量单元,用于与目标距离的(x,y)的坐标计算中氧化锌避雷器。见getMOA。
Details
详细信息----------Details----------
Robust estimate for the covariance matrix of (x,y)-coordinates is from covMcd using the MCD algorithm. See getCEP for estimates of the circular error probable.
稳健估计的协方差矩阵(X,Y)坐标是从covMcd使用MCD算法。见getCEP估计圆概率误差。
值----------Value----------
A list with the confidence ellipse measures.
列表的信心椭圆措施。
参数:size
a numerical matrix with the length of the semi-major and semi-minor axis of the ellipse (in original measurement units and MOA).
半主要和小调半椭圆轴的长度的数值矩阵(在原始测量单元和MOA)。
参数:sizeRob
a numerical matrix with the length of the semi-major and semi-minor axis of the ellipse based on a robust estimate for the covariance matrix of (x,y)-coordinates (in original measurement units and MOA).
基于一个强大的预算(的x,y)坐标(在原始测量单元和MOA)的协方差矩阵的椭圆的半长和半次要轴的长度的数值矩阵。
参数:shape
a numerical vector with the aspect ratio and the flattening of the ellipse.
矢量与椭圆的纵横比和平坦化的数值。
参数:shapeRob
a numerical vector with the aspect ratio and the flattening of the ellipse based on a robust estimate for the covariance matrix of (x,y)-coordinates.
向量上的鲁棒估计的协方差矩阵的(x,y)的坐标为基础的椭圆的纵横比和平坦化的数值。
参数:magFac
magnification factor used to turn the error ellipse into the confidence ellipse as determined by the F(2, n-1)-distribution.
倍率用于打开到F(2,n-1个)的分布所确定的置信椭圆误差椭圆。
参见----------See Also----------
getCEP, covMcd
getCEP,covMcd
实例----------Examples----------
xy <- matrix(round(rnorm(100, 0, 5), 2), ncol=2)
(ce <- getConfEll(xy, level=0.5, dstTarget=25,
conversion='m2cm'))
# plot points, center, parametric confidence[积点,中心,参数的信心;]
# ellipse, and its axes[椭圆形,其轴]
ctr <- colMeans(xy) # center point[中心点]
eigVec <- eigen(cov(xy))$vectors # eigenvectors[特征向量]
eigScl <- eigVec %*% diag(ce$size["unit", ])
# matrix with scaled ellipse axes[矩阵规模的椭圆形轴]
xMat <- rbind(ctr[1] + eigScl[1, ], ctr[1] - eigScl[1, ])
yMat <- rbind(ctr[2] + eigScl[2, ], ctr[2] - eigScl[2, ])
plot(xy, asp=1, pch=16)
drawEllipse(ctr, cov(xy), radius=ce$magFac, fg="blue")
matlines(xMat, yMat, lty=1, col="blue")
points(ctr[1], ctr[2], pch=4, col="red", cex=2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|