{ } Raw JSON

bundles / scipy latest / scipy / stats / _multivariate / uniform_direction_gen / rvs

function

scipy.stats._multivariate:uniform_direction_gen.rvs

source: /scipy/stats/_multivariate.py :6622

Signature

def   rvs ( self dim size = None random_state = None )

Summary

Draw random samples from S(N-1).

Parameters

dim : integer

Dimension of space (N).

size : int or tuple of ints, optional

Given a shape of, for example, (m,n,k), m*n*k samples are generated, and packed in an m-by-n-by-k arrangement. Because each sample is N-dimensional, the output shape is (m,n,k,N). If no shape is specified, a single (N-D) sample is returned.

random_state : {None, int, `numpy.random.Generator`,

numpy.random.RandomState}, optional

Pseudorandom number generator state used to generate resamples.

If random_state is None (or np.random), the numpy.random.RandomState singleton is used. If random_state is an int, a new RandomState instance is used, seeded with random_state. If random_state is already a Generator or RandomState instance then that instance is used.

Returns

rvs : ndarray

Random direction vectors

Aliases

  • scipy.stats._multivariate.uniform_direction_gen.rvs