random_vonmises#

classmethod OrientationRegion.random_vonmises(shape: int | tuple = (1,), alpha: float = 1.0, reference: list | tuple | Rotation = (1, 0, 0, 0)) Rotation[source]#

Return random rotations with a simplified Von Mises-Fisher distribution.

Parameters:
shape

The shape of the required object.

alpha

Parameter for the VM-F distribution. Lower values lead to “looser” distributions.

reference

The center of the distribution.

Returns:
R

Rotations.