SciPy

scipy.stats.rv_discrete.freeze

rv_discrete.freeze(self, *args, **kwds)[source]

Freeze the distribution for the given arguments.

Parameters
arg1, arg2, arg3,…array_like

The shape parameter(s) for the distribution. Should include all the non-optional arguments, may include loc and scale.

Returns
rv_frozenrv_frozen instance

The frozen distribution.