simulate_uniform_unit_vector

function simulate_uniform_unit_vector(D:Integer) -> Real[_]

Simulate a uniform distribution on unit vectors.

  • D: Number of dimensions.