fastMedian: Fast implementation of the median

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Compute the sample median with a fast C++ implementation.

Usage

1

Arguments

x

a numeric vector.

Value

The sample median.

Note

Functionality for removing observations with missing values is currently not implemented.

Author(s)

Andreas Alfons

See Also

fastMAD, median

Examples

1
2
3
set.seed(1234)  # for reproducibility
x <- rnorm(100)
fastMedian(x)


Search within the ccaPP package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.