Re: [math] Improving speed of UnitSphereRandomVectorGenerator

2013-01-30 Thread Thomas Neidhart
On Wed, Jan 30, 2013 at 4:56 PM, Gilles wrote: > Hi. > > > On Wed, 30 Jan 2013 11:54:50 +, Sean Owen wrote: > >> Hello all, I have a small proposal to improve the speed of >> UnitSphereRandomVectorGenerato**r. This class picks a random point on >> the unit n-sphere -- a unit vector, chosen uni

Re: [math] Improving speed of UnitSphereRandomVectorGenerator

2013-01-30 Thread Gilles
Hi. On Wed, 30 Jan 2013 11:54:50 +, Sean Owen wrote: Hello all, I have a small proposal to improve the speed of UnitSphereRandomVectorGenerator. This class picks a random point on the unit n-sphere -- a unit vector, chosen uniformly from all possible directions. It does so using a rejecti