entropy: Entropy of Dispersion

View source: R/entropy.R

entropyR Documentation

Entropy of Dispersion

Description

This measurement of entropy estimates the dispersion of a vector - describing the relative concentration of a vector's frequency into a number of age-classes

Usage

entropy(frequency)

Arguments

frequency

Frequency vector (can be raw counts/goodness of fit values)

Value

Entropy/Concentration measure

Examples

entropy(c(1,0,0,0,0))
entropy(c(0.5, 0.5, 0.5, 0.5, 0.5))
entropy(c(0.95, 0.75, 0.55, 0.35, 0.15))
entropy(c(0.15, 0.35, 0.55, 0.75, 0.95))


cdbernard/particles documentation built on Jan. 3, 2023, 9:39 a.m.