public void write(final OutputStream out, final Writer<? super T> writer) {
		try (AutoCloseableXMLStreamWriter xml = XML.writer(out, "    ")) {
			TrialMeter.<T>writer(writer).write(xml, this);
		} catch (XMLStreamException e) {
			throw new UncheckedIOException(new IOException(e));
		}
	}
Writes the current {@code TrialMeter} object (the calculated samples +
the parameters) to the given output stream.

@param out the output stream where to write the trial meter
@param writer the writer of the parameter type
@throws UncheckedIOException if the marshalling fails
jenetics.tool/src/main/java/io/jenetics/tool/trial/TrialMeter.java