private double[] calculateCognitiveVelocity(int particle){
			double[] cognitiveVelocity = new double[position[particle].length];
			for(int k = 0; k < cognitiveVelocity.length; k++){
				cognitiveVelocity[k] = cognitiveConstant * (personalBest[particle][k] - position[particle][k]);
			}
			return cognitiveVelocity;
		}