median.drift: Aggregate measurements of DRIFT-spectrum using median

Description Usage Arguments Value See Also Examples

View source: R/drift_median.R

Description

Given cells of measurements, make up the aggregated measurement with median. Due to non-normality in channel measurements in cells applying median instead of mean as an aggregation function seems relevant in DRIFTS. This is a S3-method for generic function median.

Usage

1
2
## S3 method for class 'drift'
median(x, na.rm = FALSE, ...)

Arguments

x

object of S3-class drift

na.rm

not used parameter for consistency with generic method

...

potentially further arguments for methods; not used in the this method.

Value

An object of S3-class drift that has only one measurement cell - the result of cell aggregation by median.

See Also

Other drift: as.data.frame.drift(), cbind.drift(), channel(), coal_drift(), diff.drift(), plot.drift(), read.drift(), slice(), write.drift()

Examples

1
2
3
4
 # Light unit tests:
 x <- median(cbind(coal_drift(), coal_drift()*.92))
 plot(x)
 stopifnot(ncol(x) == 1)

omega1x/spectrotest documentation built on Oct. 1, 2020, 4 p.m.