public static double getDistance(ClusterPoint p1, ClusterPoint p2, int distanceType)
	{
		double sum = 0.0;

		switch(distanceType)
		{
			case MANHATTEN:
				for(int i = 0; i < p1.getDimensionSize(); i++)
					sum += Math.abs(p2.getValueAtDimension(i) - p1.getValueAtDimension(i));
				
				return sum;
				
			case EUCLIDEAN:
				for(int i = 0; i < p1.getDimensionSize(); i++)
					sum += Math.pow(p2.getValueAtDimension(i) - p1.getValueAtDimension(i), 2);
				
				return Math.sqrt(sum);
				
			default:
				return -1.0;
		}
	}