private int quantizeChunk() {
		if (logtable == null) {
			buildLogTable();
		}
		double sum = 0.0;
		for (int i = 0; i < 256; ++i) {
			sum += logtable[histogram[i]];
		}
		sum = (sum / 8.0) * 256.0;
		int val = (int) Math.floor(sum);
		if (val > 255) {
			val = 255;
		}
		return val;
	}
Service for associating colors with a programs address's based on an Entropy computation for
the bytes in a chunk around the given address.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/overview/entropy/EntropyOverviewColorService.java