Physics, Science, Programming, Deep Dives, Thoughts And Theory.
self.v_std=v_std _vel=np.random.normal(loc=v_mean,scale=v_std,size=(n,self.dim)) #Uniform distribution with lower bound v_mean and higher bound v_std if dist=="uniform": self.v_mean=v_mean self.v_std=v_std _vel=np.random.uniform(low=v_mean,high=v_std,size=(n,self.dim)) #All velocities equal to