public static Sample of(final double[] values) {
		if (values.length == 0) {
			throw new IllegalArgumentException(
				"The given values must not be empty."
			);
		}

		return new Sample(values);
	}
Create a new {@code Sample} object with the {@code values}.

@param values the slot values of the created {@code Sample} object
@return a new {@code Sample} object with the {@code values}
@throws IllegalArgumentException if the length of the given {@code values}
        is zero
jenetics.tool/src/main/java/io/jenetics/tool/trial/Sample.java