aspcore.montecarlo.vonmises_fisher_on_sphere

aspcore.montecarlo.vonmises_fisher_on_sphere(num_points, mean_direction, kappa, rng)

Generate points on the unit sphere according to the von Mises-Fisher distribution. :param num_points: The number of points to generate :type num_points: int :param mean_direction: The mean direction of the distribution :type mean_direction: ndarray of shape (3,) or (1,3) :param kappa: The concentration parameter of the distribution :type kappa: float :param rng: The random number generator to use :type rng: numpy.random.Generator

Returns:

points – The points on the unit sphere

Return type:

ndarray of shape (num_points, 3)