Log Series Random Variate



Log Series Random Variate

The point probability distribution, f(k), for a random variable distributed according to log series distribution with shape parameter 0 < p < 1 is
f(k) = Pr[X = k] = - pk / [ k ln( 1 - p ) ], for k = 1,...

Function List

  • int Log_Series_Random_Variate( double p )

    This function returns X where X is the log series random variate with shape parameter (p), 0 < p < 1, described above.

Source Code

C source code is available for this routine: