[Numpy-discussion] Another Array

Anne Archibald peridot.faceted@gmail....
Fri Apr 10 02:17:58 CDT 2009

2009/4/10 Ian Mallett <geometrian@gmail.com>:

> The vectors are used to "jitter" each particle's initial speed, so that the
> particles go in different directions instead of moving all as one.  Using
> the unit vector causes the particles to make the smooth parabolic shape.
> The jitter vectors much then be of a random length, so that the particles go
> in all different directions at all different speeds, instead of just all in
> different directions.

Why not just skip the normalization? Then you'll get vectors with
random direction and a natural distribution of lengths. And it'll be
faster than tne unit vectors...


More information about the Numpy-discussion mailing list