Computes Pearson's coefficient of variation

Description

This functions computes the absolute coefficient of variation as proposed by Pearson: standard deviation divided by the mean. Essentially, cv reflects a normalized measure of dispersion of a probability distribution. Distributions with cv < 1 are considered low-variance, while those with cv > 1 high-variance.

Usage

1
cv(x)

Arguments

x

is a numeric vector.

Details

sd(x)/mean(x) = cv, which is the inverse of signal-to-noise ratio.

Value

Will return the computation of the variation.

Author(s)

Daniel Marcelino

Examples

1
2
v <- rnorm(10) 
cv(v)