public Optional<Interval> intersect(final Interval other) {
		if (Double.compare(max, other.min) <= 0 ||
			Double.compare(min, other.max) >= 0)
		{
			return Optional.empty();
		} else {
			return Optional.of(
				new Interval(
					Math.max(min, other.min),
					Math.min(max, other.max)
				)
			);
		}
	}
Return the intersection of {@code this} interval with the {@code other}.

@param other the intersection interval or {@link Optional#empty()} if
       there is none
@return the intersection interval
jenetics.incubator/src/main/java/io/jenetics/incubator/stat/Interval.java