The Interpolation.CreateNaturalCubicSpline method takes a IList<double> as argument. Vector does not have an implicit cast to IList.
Therefore I need to write:
Interpolation.CreateNaturalCubicSpline(((double[)x).ToList(), ((double[)y).ToList());
instead of:
Interpolation.CreateNaturalCubicSpline(x, y);
I quickly tried to add an implicit cast to Vector, but VS gave me the following error:
Error 1 'MathNet.Numerics.LinearAlgebra.Vector.implicit operator System.Collections.Generic.IList<double>(MathNet.Numerics.LinearAlgebra.Vector)': user-defined conversions to or from an interface are not allowed C:\Documents and Settings\czietsman\My Documents\Visual Studio 2008\Math.Net\src\app\MathNet.Iridium\Library\LinearAlgebra\Vector.cs 315 23 Iridium
Is there a reason why CreateNaturalCubicSpline takes an IList as argument instead of a vector or double[?