@Override
		public void accept(final double value) {
			_buffer[_pos] = value;

			_pos = (_pos + 1)%_buffer.length;
			_length = min(_length + 1, _buffer.length);
			++_samples;
		}
Create a new double ring-buffer.

@param capacity the ring buffer capacity.
@throws IllegalArgumentException if {@code capacity < 1}
jenetics/src/main/java/io/jenetics/engine/FitnessConvergenceLimit.java