Tsallis.z: Tsallis.z

Description Usage Arguments Author(s) References Examples

View source: R/EntropEst.r

Description

Returns the Z estimator of Tsallis entropy. This is based on scaling and shifting the Z estimator of Renyi's equivalent entropy. When r=1 returns the Z estimator of Shannon's entropy. See Zhang and Grabchak (2014a) for details.

Usage

1
Tsallis.z(x, r)

Arguments

x

Vector of counts. Must be integer valued. Each entry represents the number of observations of a distinct letter.

r

Order or Renyi's equivalent entropy this index is based on. Must be a strictly positive real number.

Author(s)

Lijuan Cao and Michael Grabchak

References

Z. Zhang and M. Grabchak (2014a). Entropic representation and estimation of diversity indices. http://arxiv.org/abs/1403.3031.

Examples

1
2
3
4
5
6
 x = c(1,3,7,4,8)
 Tsallis.z(x,2)  
 
 data = rbinom(10,20,.5)
 counts = tabulate(as.factor(data))
 Tsallis.z(counts,2)

Example output

[1] 0.770751
[1] 0.9333333

EntropyEstimation documentation built on May 1, 2019, 6:33 p.m.