{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _distribution_infrastructure / UnivariateDistribution / _process_parameters

function

scipy.stats._distribution_infrastructure:UnivariateDistribution._process_parameters

source: /scipy/stats/_distribution_infrastructure.py :1807

Signature

def   _process_parameters ( self ** params )

Summary

Process and cache distribution parameters for reuse.

Extended Summary

This is intended to be overridden by subclasses. It allows distribution authors to pre-process parameters for re-use. For instance, when a user parameterizes a LogUniform distribution with a and b, it makes sense to calculate log(a) and log(b) because these values will be used in almost all distribution methods. The dictionary returned by this method is passed to all private methods that calculate functions of the distribution.

Aliases

  • scipy.stats._distribution_infrastructure.UnivariateDistribution._process_parameters