/// <summary> /// Create a linear spline interpolation based on arbitrary points (sorted ascending). /// </summary> /// <param name="points">The sample points t, sorted ascending. 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 IInterpolation LinearBetweenPoints( IList<double> points, IList<double> values) { LinearSplineInterpolation method = new LinearSplineInterpolation(); method.Initialize(points, values); return method; }
/// <summary> /// Create a linear spline interpolation based on arbitrary points (sorted ascending). /// </summary> /// <param name="points">The sample points t, sorted ascending. 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 IInterpolation LinearBetweenPoints( IList <double> points, IList <double> values) { LinearSplineInterpolation method = new LinearSplineInterpolation(); method.Initialize(points, values); return(method); }
CreateLinearSpline( IList <double> points, IList <double> values) { LinearSplineInterpolation method = new LinearSplineInterpolation(); method.Init(points, values); return(method); }
/// <summary> /// Create a linear spline 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 CreateLinearSpline( IList<double> points, IList<double> values) { LinearSplineInterpolation method = new LinearSplineInterpolation(); method.Init(points, values); return method; }