public static <N extends Number> Collector<N, ?, IntMoments>
	toIntMoments() {
		return toIntMoments(Number::intValue);
	}
Return a {@code Collector} which returns moments-statistics for the
resulting values.
{@snippet lang="java":
final Stream<Integer> stream = null; // @replace substring='null' replacement="..."
final IntMoments moments = stream.collect(toIntMoments());
}

@since 4.1

@param <N> the type of the input elements
@return a {@code Collector} implementing the moments-statistics reduction
jenetics/src/main/java/io/jenetics/stat/IntMoments.java