bundles / scipy 1.17.1 / scipy / stats / _multivariate / uniform_direction_gen / rvs
function
scipy.stats._multivariate:uniform_direction_gen.rvs
Signature
def rvs ( self , dim , size = None , random_state = None ) Summary
Draw random samples from S(N-1).
Parameters
dim: integerDimension of space (N).
size: int or tuple of ints, optionalGiven 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_stateisNone(ornp.random), the numpy.random.RandomState singleton is used. Ifrandom_stateis an int, a newRandomStateinstance is used, seeded withrandom_state. Ifrandom_stateis already aGeneratororRandomStateinstance then that instance is used.
Returns
rvs: ndarrayRandom direction vectors
Aliases
-
scipy.stats._multivariate.uniform_direction_gen.rvs