If the "list of x values" is a Vector<T> then why not use
If x values is just a List<T> or an array then use Linq:
and add .ToList() or .ToArray() to get other result stuctures.
Vector<T>.Map(Func<T, TU> f, Zeros zeros)
which will return a new Vector<TU> of the "y values"If x values is just a List<T> or an array then use Linq:
var yValues = xValues.Select(method.Interpolate);
to get an IEnumberable<T>and add .ToList() or .ToArray() to get other result stuctures.