Quantcast
Channel: Math.NET Numerics
Viewing all articles
Browse latest Browse all 971

New Post: Linear Interpolation

$
0
0
If the "list of x values" is a Vector<T> then why not use
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.

Viewing all articles
Browse latest Browse all 971


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>