{ } Raw JSON

bundles / scipy latest / scipy / stats / _distn_infrastructure / _check_shape

function

scipy.stats._distn_infrastructure:_check_shape

source: /scipy/stats/_distn_infrastructure.py :4161

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 integers

Shape of the arguments.

size : tuple of integers or integer

Size argument of rvs().

Returns

: The function returns two tuples, scalar_shape and bc.
scalar_shape : tuple

Shape 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 booleans

bc 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