LogUniform Inverse CDF
x = distfun_loguinv ( p , a , b ) x = distfun_loguinv ( p , a , b , lowertail )
a matrix of doubles, the probability. Must be in the range [0,1].
a matrix of doubles, the minimum of the underlying uniform variable.
a matrix of doubles, the maximum of the underlying uniform variable. b>a.
a 1-by-1 matrix of booleans, the tail (default lowertail=%t). If lowertail is true (the default), then considers P(X<=x) otherwise P(X>x).
a matrix of doubles
This function computes the LogUniform quantile.
Any scalar input argument is expanded to a matrix of doubles of the same size as the other input arguments.
Any optional input argument equal to the empty matrix will be set to its default value.
x=distfun_loguinv(0.6,1,2) xexpected = 4.9530324 // Check the inverse LogUniforme a=1; b=10; x=exp(2) p=distfun_logucdf(x,a,b) x=distfun_loguinv(p,a,b) // Must be exp(2) // Test upper tail x=distfun_loguinv(0.1,1,2,%f) // 6.6858944 | ![]() | ![]() |