concentration: Measures concentration

Description Usage Arguments Details Value Author(s) Examples

View source: R/concentration.R

Description

This function measures concentration in a frequency vector

Usage

1
concentration(V, metric=2)

Arguments

V

Vector

metric

city block metric

Details

This function measures concentration in a frequency vector in city blocks. The default metric is 2.

Value

measure of concentration

Author(s)

Clem Aeppli

Examples

1
2
3
# Sample data
V <- c(30,40,210,130,530,50,10)
concentration(V)

Example output

[1] 0.7728734

agrmt documentation built on July 18, 2021, 1:06 a.m.