Ejemplo n.º 1
0
 /// <summary>
 /// Create a polynomial interpolation based on equidistant sample points.
 /// </summary>
 /// <param name="leftBound">The leftmost (smallest) sample point t.</param>
 /// <param name="rightBound">The rightmost (biggest) sample point t.</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 CreateOnEquidistantPoints(
     double leftBound,
     double rightBound,
     IList<double> values)
 {
     EquidistantPolynomialInterpolation method = new EquidistantPolynomialInterpolation();
     method.Init(leftBound, rightBound, values);
     return method;
 }