Skip to contents

sd(x) / |mean(x)|. Inf when the mean is zero.

Usage

morie_dsp_cv(x)

Arguments

x

Numeric vector.

Value

Scalar.

References

Rangayyan & Krishnan (2015), Ch. 3.

Examples

set.seed(1)
x <- rnorm(100, mean = 5)
morie_dsp_cv(x)
#> [1] 0.1758111
morie_dsp_cv(c(-1, 1))  # zero mean: Inf
#> [1] Inf