sd(x) / |mean(x)|. Inf when the mean is zero.
Arguments
- x
Numeric vector.
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