bundles / scipy latest / scipy / stats / _distribution_infrastructure / _Parameterization
class
scipy.stats._distribution_infrastructure:_Parameterization
Signature
class _Parameterization ( * parameters ) Members
Summary
Represents a parameterization of a distribution.
Extended Summary
Distributions can have multiple parameterizations. A _Parameterization object is responsible for recording the parameters used by the parameterization, checking whether keyword arguments passed to the distribution match the parameterization, and performing input validation of the numerical values of these parameters.
Attributes
parameters: dictString names (of keyword arguments) and the corresponding _Parameters.
Methods
__len__()Returns the number of parameters in the parameterization.
__str__()Returns a string representation of the parameterization.
copyReturns a copy of the parameterization. This is needed for transformed distributions that add parameters to the parameterization.
matches(parameters)Checks whether the keyword arguments match the parameterization.
validation(parameter_values)Input validation / standardization of parameterization. Validates the numerical values of all parameters.
draw(sizes, rng, proportions)Draw random values of all parameters of the parameterization for use in testing.
Aliases
-
scipy.stats._distribution_infrastructure._Parameterization