Enq: Grassberger's expectation of n^q

Description Usage Arguments Details Value Note Author(s) References Examples

View source: R/Enq.R

Description

Expected value of n^q when n follows a Poisson law.

Usage

1
Enq(n, q)

Arguments

n

A positive integer vector.

q

A positive number.

Details

The expectation of n^q when n follows a Poisson ditribution has been derived by Grassberger (1988).

Value

A vector of the same length as n containing the transformed values.

Note

The function is computed using the beta.function.

Its value is 0 for n-q+1<0.

Author(s)

Eric Marcon <[email protected]>

References

Grassberger, P. (1988). Finite sample corrections to entropy and dimension estimates. Physics Letters A 128(6-7): 369-373.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Compare
n <- c(2,3)
Enq(n, q=2)
# with
n^2

# Result is 1
Enq(n, q=0)
# Result is 0
Enq(n, q=5)

entropart documentation built on Feb. 6, 2018, 1:04 a.m.