@Override
	public Cdf cdf() {
		return value -> {
			final int index = observation.partition().indexOf(value);
			if (index < 0) {
				return 0;
			}
			if (index >= observation.partition().size()) {
				return 1;
			}

			final var bucket = observation.buckets().get(index);
			final var itv = bucket.interval();
			final var rest = (value - itv.min())/
				(itv.max() - itv.min())*bucket.count();

			return (sums[index] + rest)/samples;
		};
	}
Return the observed distribution.

@return the observed distribution
jenetics.incubator/src/main/java/io/jenetics/incubator/stat/EmpiricalDistribution.java