pytransform3d.rotations.random_vector

pytransform3d.rotations.random_vector(random_state=RandomState(MT19937) at 0x7FE0FA06A740, n=3)[source]

Generate an nd vector with normally distributed components.

Each component will be sampled from \mathcal{N}(\mu=0, \sigma=1).

Parameters
random_statenp.random.RandomState, optional (default: random seed 0)

Random number generator

nint, optional (default: 3)

Number of vector components

Returns
varray, shape (n,)

Random vector

Examples using pytransform3d.rotations.random_vector