isotropic

random.isotropic(size=None, pdf='rademacher', seed=None, out=None)

Generates random vectors from a specified isotropic distribution.

Parameters

Name Type Description Default
size Union[int, tuple, None] Output shape to generate. None
pdf str Isotropic distribution to sample from. Must be “rademacher”, “sphere”, or “normal”. 'rademacher'
seed Union[int, np.random.Generator, None] Seed or generator for pseudorandom number generation. None
out Optional[np.ndarray] Output array to fill values in-place. None

Returns

Name Type Description
Union[np.ndarray, Callable] Array of shape size with rows distributed according to pdf.