gini: Normalized Gini heterogeneity index

Description Usage Arguments See Also Examples

View source: R/gini.R

Description

Compute the normalized Gini heterogeneity index for a given discrete probability distribution.

Usage

1
gini(prob)

Arguments

prob

Vector of probability distribution or relative frequencies

See Also

laakso

Examples

1
2
prob<-c(0.04,0.04,0.05,0.10,0.21,0.32,0.24)
gini(prob)

CUB documentation built on Nov. 17, 2017, 6:37 a.m.