{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _distribution_infrastructure / _Parameterization / draw

function

scipy.stats._distribution_infrastructure:_Parameterization.draw

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

Signature

def   draw ( self sizes = None rng = None proportions = None region = domain )

Summary

Draw random values of all parameters for use in testing.

Parameters

sizes : iterable of shape tuples

The size of the array to be generated for each parameter in the parameterization. Note that the order of sizes is arbitary; the size of the array generated for a specific parameter is not controlled individually as written.

rng : NumPy Generator

The generator used to draw random values.

proportions : tuple

A tuple of four non-negative numbers that indicate the expected relative proportion of elements that are within the parameter's domain, are on the boundary of the parameter's domain, are outside the parameter's domain, and have value NaN. For more information, see the draw method of the _Parameter subclasses.

domain : str

The domain of the _Parameter from which to draw. Default is "domain" (the full domain); alternative is "typical".

Returns

parameter_values : dict (string: array)

A dictionary of parameter name/value pairs.

Aliases

  • scipy.stats._distribution_infrastructure._Parameterization.draw