private double calculateNormalisedDeviationDistance(int elementIndex, double element, double[] array){
		double distance = 0;
		for(int i = 0; i < array.length; i++){
			if(element == array[i]){
				distance = elementIndex - i;
			}
		}
		if(distance < 0){
			distance = distance * -1;
		}
		return distance/array.length - 1;
	}