flopscope.

flopscope.stats.lognorm.pdf

flopscope.stats.lognorm.pdf(x, s, loc=0, scale=1)[flopscope source]

Evaluate the probability density function.

Parameters

x:array_like

Points at which to evaluate the density.

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

Probability density evaluated elementwise at x.

Notes

Equivalent to scipy.stats.lognorm.pdf(x, s, loc, scale). FLOP cost: 1 * numel(x).

Examples

>>> import flopscope.numpy as fnp
>>> import flopscope as flops
>>> x = flops.array([0.5, 1.0, 2.0])
>>> flops.round(flops.stats.lognorm.pdf(x, s=0.5), 3)
array([0.61 , 0.798, 0.153])