Enq {entropart} | R Documentation |
Expected value of n^q
when n
follows a Poisson law.
Enq(n, q)
n |
A positive integer vector. |
q |
A positive number. |
The expectation of n^q
when n
follows a Poisson ditribution has been derived by Grassberger (1988).
A vector of the same length as n
containing the transformed values.
The function is computed using the beta
.function.
Its value is 0 for n-q+1<0
.
Grassberger, P. (1988). Finite sample corrections to entropy and dimension estimates. Physics Letters A 128(6-7): 369-373.
# 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)