Skip to contents

A distance-based dispersion measure

Usage

dwg(cpos, f, size, corr = TRUE)

Arguments

cpos

integer vector representing the indeces of a token

f

integer count of a token

size

integer corpus size

corr

logical whether or not to apply a geometric correction, see Details

Value

numeric

Details

TODO:

Examples

dwg(c(41, 32, 41, 12), f = 4, size = 100)
#> [1] 0.4151679