static int indexOf(final double[] incr, final double v) {
		return incr.length <= SERIAL_INDEX_THRESHOLD
			? indexOfSerial(incr, v)
			: indexOfBinary(incr, v);
	}
Check if the given probabilities sum to one.

@param probabilities the probabilities to check.
@return {@code true} if the sum of the probabilities is within the error
        range, {@code false} otherwise.
jenetics/src/main/java/io/jenetics/ProbabilitySelector.java