static <T> Sample<T> of(final T[] sample) {
		return new ObjectSample<>(sample.clone());
	}
Create a new sample point from the given argument and sample result. It
represents the function arguments with the function value:
{@code f: sample[0:sample.length-1] -> sample[sample.length-1]}. The last
array element contains the result, and the first n-1 elements are function
arguments.

@param <T> the sample type
@param sample the sample point result
@return a new sample point
@throws IllegalArgumentException if the argument array is empty
@throws NullPointerException if the argument array is {@code null}
jenetics.prog/src/main/java/io/jenetics/prog/regression/Sample.java