getKuchnost {shotGroups}R Documentation

Kuchnost precision estimate

Description

Estimates the Kuchnost precision measure. The maximum distance to the group center after removing outliers.

Usage

getKuchnost(xy, dstTarget, conversion,
       center = FALSE, doRob = FALSE, strict = FALSE)

## S3 method for class 'data.frame'
getKuchnost(xy, dstTarget, conversion,
       center = FALSE, doRob = FALSE, strict = FALSE)

## Default S3 method:
getKuchnost(xy, dstTarget, conversion,
       center = FALSE, doRob = FALSE, strict = FALSE)

Arguments

xy

either a numerical (n x p)-matrix with the coordinates of n points (1 row of p coordinates per point), or a data frame with either the variables x, y or point.x, point.y (optionally z or point.z).

dstTarget

a numerical value giving the distance to the target - used in MOA calculation. Acts as override if variable distance is already included in xy. See getMOA.

conversion

how to convert the measurement unit for distance to target to that of the (x,y)-coordinates in MOA calculation. Acts as override if variables dist.unit and point.unit are already included in xy. Example 'm2cm'. See getMOA.

center

logical: center groups to mean (0,0) first? If variable series does not exist, all shots are treated as belonging to the same group. Only available in method getCEP.data.frame().

doRob

logical: use robust estimation of center and covariance matrix as basis for estimators?

strict

logical: enable check that xy contains exactly 4 shots.

Details

An outlier is defined as a shot that is at least 2.5 times further away from the group center defined by all remaining shots compared to the maximum distance to center of those shots themselves.

Value

A list with 3 components.

Kuchnost

The Kuchnost precision measure.

outlier

Indices of outliers, if any.

ctr

group center after removing outliers

References

https://github.com/lstange/mcgs

See Also

covMcd

Examples

getKuchnost(DF300BLK)

[Package shotGroups version 0.8.2 Index]