public double FindPeak(long[][] arr) {
		long max = 0;
		for (int i = 0; i < ximlen; i++) {
			for (int j = 0; j < yimlen; j++) {
				if (arr[i][j] > max) {
					max = arr[i][j];
				}
			}
		}

		// this fractal has extreme values at certain points, cut down the max
		// value
		if (gradient <= 0.3)
			return Math.pow(max, 0.9);
		else if (gradient <= 0.2)
			return Math.pow(max, 0.7);
		else if (gradient <= 0.1)
			return Math.pow(max, 0.4);
		else if (gradient <= 0.05)
			return Math.pow(max, 0.3);
		else
			return max;
	}