@SuppressWarnings({"unchecked", "rawtypes"})
	public int publish() {
		final Object[] values = _buffer.snapshot();

		SampleList<T> snapshot = null;
		if (values != null && values.length > 0) {
			final List samples = Arrays.asList(values);
			snapshot = new SampleList(samples);
		}

		try {
			return snapshot != null ? snapshot.size() : 0;
		} finally {
			_snapshot = snapshot;
		}
	}
Making the current sample points available for the {@link #eval(Tree)}
function.

@return the number of <em>published</em> sample points
jenetics.prog/src/main/java/io/jenetics/prog/regression/SampleBuffer.java