Geometric Inverse CDF
X = distfun_geoinv(p,Pr) X = distfun_geoinv(p,Pr,lowertail)
a 1x1 or nxm matrix of doubles, the probability .
a 1x1 or nxm matrix of doubles, the probability of success in a Bernoulli trial
a 1x1 matrix of booleans, the tail (default lowertail=%t). If lowertail is true (the default), then considers P(X<x) otherwise P(X>x).
a nxm matrix of doubles, the outcome. X belongs to the set {0,1,2,3,......}
Computes the Inverse cumulative distribution function of the Geometric distribution function.
Any scalar input argument is expanded to a matrix of doubles of the same size as the other input arguments.
http://en.wikipedia.org/wiki/Geometric_distribution