Logarithmic Distribution
y = logth(p,k,c)
output
probabiliy of success
k is an integer greater than equal to 1.
It will allow the user to generate a logarithmic random variate with probability of success p. In this case the function is independent of k and hence any value of k can be set.
It will allow the user to compute the probability p(k) of obtaining k from a logarithmic distribution with probability of success p.
This function is used to calculate logarithmic random variate and probability p(k) of obtaining k from a logarithmic distribution with parameter p.
// probability p(k) of obtaining k=1 from a logarithmic distribution with p=0.7. p=0.7 k=1 c=2 y = logth(p,k,c) disp(y) | ![]() | ![]() |