private void calculateVelocities() {
		double r1 = Math.random();
		double r2 = Math.random();
		for(int i = 0; i < position.length; i++){
			double[]cognitive = calculateCognitiveVelocity(i, r1);
			double[]social = calculateSocialVelocity(i, r2);
			for(int k = 0; k < position[i].length; k++){
				velocities[i][k] = velocities[i][k] + cognitive[k] + social[k];
			}
		}
		
	}