computing the normalized distribution of particle velocities