[Numpy-discussion] Another Array

Anne Archibald peridot.faceted at gmail.com
Fri Apr 10 03:17:58 EDT 2009


2009/4/10 Ian Mallett <geometrian at 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...

Anne



More information about the NumPy-Discussion mailing list