getRangeStat: Range statistics

View source: R/getRangeStat.R

getRangeStatR Documentation

Range statistics

Description

Returns range statistics: extreme spread, figure of merit, bounding box diagonal

Usage

getRangeStat(xy, dstTarget, conversion)

## S3 method for class 'data.frame'
getRangeStat(xy, dstTarget, conversion)

## Default S3 method:
getRangeStat(xy, dstTarget, conversion)

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.

Value

A named numeric vector with elements ES (extreme spread), FoM (figure of merit), D (bounding box diagonal).

References

Grubbs, F. E. (1964b). Statistical measures of accuracy for riflemen and missile engineers. Ann Arbor, ML: Edwards Brothers.

See Also

getMaxPairDist, getBoundingBox

Examples

getRangeStat(DFscar17)

dwoll/shotGroups documentation built on Feb. 16, 2024, 2:21 p.m.