bundles / scipy 1.17.1 / scipy / stats / _distn_infrastructure / _check_shape
function
scipy.stats._distn_infrastructure:_check_shape
Signature
def _check_shape ( argshape , size ) Summary
This is a utility function used by _rvs() in the class geninvgauss_gen. It compares the tuple argshape to the tuple size.
Parameters
argshape: tuple of integersShape of the arguments.
size: tuple of integers or integerSize argument of rvs().
Returns
: The function returns two tuples, scalar_shape and bc.scalar_shape: tupleShape to which the 1-d array of random variates returned by _rvs_scalar() is converted when it is copied into the output array of _rvs().
bc: tuple of booleansbc is an tuple the same length as size. bc[j] is True if the data associated with that index is generated in one call of _rvs_scalar().
Aliases
-
scipy.stats._continuous_distns._check_shape