public Histogram build() {
			final var buckets = new Buckets(
				partition,
				copyOfRange(frequencies, 1, frequencies.length - 1)
			);
			final var residuals = new Residual(
				frequencies[0],
				frequencies[frequencies.length - 1]
			);

			return new Histogram(buckets, residuals);
		}
Create a new <em>immutable</em> histogram object from the current
values.

@return a new <em>immutable</em> histogram object
jenetics.incubator/src/main/java/io/jenetics/incubator/stat/Histogram.java