flopscope.stats.lognorm.ppf
flopscope.stats.lognorm.ppf(q, s, loc=0, scale=1)[flopscope source]
Evaluate the percent-point function.
Parameters
- q:array_like
Probabilities in
[0, 1].- s:float
Shape parameter of the distribution.
- loc:float, optional
Location parameter. Defaults to
0.- scale:float, optional
Scale parameter. Defaults to
1.
Returns
- :FlopscopeArray
Quantiles corresponding to
q.
Notes
Equivalent to scipy.stats.lognorm.ppf(q, s, loc, scale).
FLOP cost: 1 * numel(q).
Examples
>>> import flopscope.numpy as fnp
>>> import flopscope as flops
>>> q = flops.array([0.25, 0.5, 0.75])
>>> flops.round(flops.stats.lognorm.ppf(q, s=0.5), 3)
array([0.714, 1. , 1.401])