getHitProb(xy, r=1, unit = 'unit', dstTarget = 100, conversion = 'm2cm',
accuracy = FALSE, type = 'CorrNormal', doRob = FALSE)
## S3 method for class 'data.frame':
getHitProb(xy, r=1, unit = 'unit', dstTarget = 100, conversion = 'm2cm',
accuracy = FALSE, type = 'CorrNormal', doRob = FALSE)
## S3 method for class 'default':
getHitProb(xy, r=1, unit = 'unit', dstTarget = 100, conversion = 'm2cm',
accuracy = FALSE, type = 'CorrNormal', doRob = FALSE)
X
, Y
or Point.X
, Point.Y
(optionally Z
or r
. Default 'unit'
indicates that the measurement unit for (x,y)-coordinates given in conversion
. Possible values are 'unit', 'm', 'cm', 'mm', 'yd', 'ft', 'in', 'MOA', 'SMOA', 'milrad
getMOA
.getMOA
.'CorrNormal', 'GrubbsPearson', 'GrubbsPatnaik', 'GrubbsLiu', 'Rayleigh'
.accuracy=FALSE
.r
.
For accuracy=FALSE
(default), the estimated hit probability does not take into account accuracy, i.e., any systematic location bias. The data is then first centered on the empirical group mean, assumed to coincide with the point of aim. Set accuracy=TRUE
to incorporate systematic accuracy bias such that the point of aim is in the origin 0, possibly offset from the true group center.
CorrNormal
: Foraccuracy=FALSE
and two-dimensional data, this estimate is based on the quantile function of the correlated bivariate normal distribution re-written in polar coordinates (radius and angle) (seeHoyt
). Foraccuracy=TRUE
or three-dimensional data, it is based on the (offset) circle/sphere probabilities for the correlated multivariate normal distribution (DiDonato & Jarnagin, 1961; DiDonato, 1981, seepmvnEll
).GrubbsPearson
: The Grubbs-Pearson estimate (Grubbs, 1964) is based on the Pearson three-moment central chi^2-approximation of the true cumulative distribution function of radial error. The eigenvalues of the covariance matrix of shot-coordinates are used as variance estimates since they are the variances of the principal components (the PCA-rotated = decorrelated data).GrubbsPatnaik
: The Grubbs-Patnaik estimate (Grubbs, 1964) differs from the Grubbs-Pearson estimate insofar as it is based on the Patnaik two-moment central chi^2-approximation of the true cumulative distribution function of radial error.GrubbsLiu
: The Grubbs-Liu estimate was not proposed by Grubbs but follows the same principle as his original estimates. It differs from them insofar as it is based on the Liu-Tang-Zhang four-moment non-central chi^2-approximation of the true cumulative distribution function of radial error. Foraccuracy=FALSE
, it is identical toGrubbsPearson
.Rayleigh
: Foraccuracy=FALSE
and two-dimensional data, this estimate uses the Rayleigh distribution (seegetRayParam
). It is valid for uncorrelated bivariate normal coordinates with equal variances. This estimate is available for all probability levels. Foraccuracy=FALSE
and three-dimensional data, the Maxwell-Boltzmann distribution is used (seegetMaxParam
). Foraccuracy=TRUE
and two-dimensional data, the estimate uses the Rice distribution (seegetRiceParam
). Foraccuracy=TRUE
and three-dimensional data, it is based on the offset sphere probabilities for the multivariate normal distribution set to have equal variances (seeqmvnEll
).Rayleigh
,
Maxwell
,
Hoyt
,
mvnEll
,
getHoytParam
,
getRayParam
,
getCEP
,
getConfEll
,
covMcd
# coordinates given by a suitable data frame
# estimated fraction of shots within a circle with radius 1 MOA.
getHitProb(DFscar17, r=1, unit='MOA', accuracy=FALSE,
dstTarget=100, conversion='yd2in',
type=c('CorrNormal', 'GrubbsPatnaik'))
# coordinates given by a matrix
xy <- matrix(round(rnorm(100, 0, 5), 2), ncol=2)
getHitProb(xy, r=1, unit='MOA', accuracy=FALSE,
dstTarget=100, conversion='yd2in',
type=c('CorrNormal', 'GrubbsPatnaik'))
Run the code above in your browser using DataLab