@SafeVarargs
	public static <T> Regression<T> of(
		final Codec<Tree<Op<T>, ?>, ProgramGene<T>> codec,
		final Error<T> error,
		final Sample<T>... samples
	) {
		return of(codec, error, List.of(samples));
	}
Create a new regression problem instance with the given parameters.

@see #codecOf(ISeq, ISeq, int)
@see #codecOf(ISeq, ISeq, int, Predicate)

@param <T> the operation type
@param codec the problem codec to use
@param error the error function
@param samples the sample points used for regression analysis
@return a new regression problem instance
@throws IllegalArgumentException if the given {@code samples} is empty
@throws NullPointerException if one of the arguments is {@code null}
jenetics.prog/src/main/java/io/jenetics/prog/regression/Regression.java