Skip to main content
8 events
when toggle format what by license comment
Feb 3, 2012 at 4:08 vote accept BeauGeste
Feb 3, 2012 at 4:08
Feb 3, 2012 at 4:00 answer added David timeline score: 2
Feb 3, 2012 at 3:19 comment added David Z @BeauGeste I did the calculation and realized the normal distribution of lengths and the normal distribution of coordinates are actually the same thing (assuming a spherically symmetric angular distribution), which is why I deleted my comment ;-)
Feb 3, 2012 at 3:18 answer added David Z timeline score: 7
Feb 3, 2012 at 3:16 comment added kglr From Mma documentation on RandomReal I would have thought that you needed RandomVariate[...]; but, to my surprise, RandomReal[NormalDistribution[0,1]] generates standard normal random numbers,i.e., RandomReal does accept distribution functions as the first argument:)
Feb 3, 2012 at 3:05 comment added BeauGeste @J.M The vectors orientations are distributed over some portion of the sphere (with azimuthal symmetry and symmetric around polar angle of 90). So I think the negative part of the vectors is accounted for already through the angle distribution and that's why I didn't use the full normal distribution.
Feb 3, 2012 at 2:57 comment added J. M.'s missing motivation Why not Normalize[] the vectors to have unit length, and then multiply the components with RandomReal[NormalDistribution[0,x]]? (I haven't posted as an answer since you make no mention of the distribution the vectors themselves are supposed to follow...)
Feb 3, 2012 at 2:47 history asked BeauGeste CC BY-SA 3.0