CreatePolynomial( IList <double> points, IList <double> values) { PolynomialInterpolation method = new PolynomialInterpolation(); method.Init(points, values); return(method); }
/// <summary> /// Create a polynomial (Neville) interpolation based on arbitrary points. /// </summary> /// <param name="points">The sample points t. Supports both lists and arrays.</param> /// <param name="values">The sample point values x(t). Supports both lists and arrays.</param> /// <returns> /// An interpolation scheme optimized for the given sample points and values, /// which can then be used to compute interpolations and extrapolations /// on arbitrary points. /// </returns> public static IInterpolationMethod CreatePolynomial( IList<double> points, IList<double> values) { PolynomialInterpolation method = new PolynomialInterpolation(); method.Init(points, values); return method; }