getRayParam | R Documentation |
Estimates the radial precision parameter sigma of the Rayleigh distribution together with the radial mean MR, radial median MEDR, and radial standard deviation RSD, including parametric confidence intervals. For 1D data, it estimates the parameters of the half normal distribution with parameter theta = sqrt(pi/2). For 3D data, it estimates the parameters of the Maxwell-Boltzmann distribution
getRayParam(xy, level = 0.95, mu, doRob = FALSE)
## S3 method for class 'data.frame'
getRayParam(xy, level = 0.95, mu, doRob = FALSE)
## Default S3 method:
getRayParam(xy, level = 0.95, mu, doRob = FALSE)
xy |
either a numerical matrix with the coordinates of n points (1 row of coordinates per point), or a data frame with either the variables |
level |
a numerical value with the coverage for the confidence intervals for sigma, MR, MEDR, RSD. |
mu |
numerical 2-vector with the true group center (optional). See details. |
doRob |
logical: use robust estimation of covariance matrix as basis for estimators? |
When the true mean mu
of the distribution is given, the sigma estimate uses the sum of squared radii for the variance estimate (the total un-corrected variance of the coordinates), and employs the c4 correction factor for taking the square root. When mu
is missing, the sum of squared radii is Bessel-corrected for estimating the center.
The robust estimate for the covariance matrix of (x,y)-coordinates is from covMcd
using the MCD algorithm.
A list with the estimates for sigma, RSD, MR, and MEDR including the confidence intervals.
sigma |
A vector with the sigma estimate and confidence interval bounds as named elements |
RSD |
A vector with the RSD estimate and confidence interval bounds as named elements |
MR |
A vector with the MR estimate and confidence interval bounds as named elements |
MEDR |
A vector with the MEDR estimate and confidence interval bounds as named elements |
http://ballistipedia.com/index.php?title=Closed_Form_Precision
Singh, H. P. 1992. Estimation of Circular Probable Error. The Indian Journal of Statistics, Series B 5(3), 289-305.
Rayleigh
,
Maxwell
,
getCEP
,
getHitProb
,
groupSpread
,
covMcd
# coordinates given by a suitable data frame
getRayParam(DFtalon, level=0.95, doRob=FALSE)
# coordinates given by a matrix
## Not run:
xy <- matrix(round(rnorm(100, 0, 5), 2), ncol=2)
getRayParam(xy, level=0.95, doRob=FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.