@Override
	public void accept(final Sample sample) {
		if (sample.size() != _parameterCount) {
			throw new IllegalArgumentException(format(
				"Expected sample size of %d, but got %d.",
				_moments.size(), sample.size()
			));
		}

		for (int i = 0; i < _parameterCount; ++i) {
			_moments.get(i).accept(sample.get(i));
			_quantiles.get(i).accept(sample.get(i));
		}
	}
Create a new statistics object with the given expected parameter count of
the accepted samples.

@param parameterCount the parameter count or sample size, respectively
@throws IllegalArgumentException if the given {@code parameterCount}
        is smaller then one
jenetics.tool/src/main/java/io/jenetics/tool/trial/SampleSummaryStatistics.java