random unit vector in multi-dimensional space

后端 未结 5 1957
栀梦
栀梦 2020-12-05 10:42

I\'m working on a data mining algorithm where i want to pick a random direction from a particular point in the feature space.

If I pick a random number for each of

5条回答
  •  余生分开走
    2020-12-05 11:01

    There is a boost implementation of the algorithm that samples from normal distributions: random::uniform_on_sphere

提交回复
热议问题