BarycentricSeries.GetChebyshevInterpolator Method

Calculates the Chebyshev interpolating polynomial of the specified degree over the given interval for the specified function.

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public static BarycentricSeries GetChebyshevInterpolator(
	Func<double, double> function,
	double lowerBound,
	double upperBound,
	int degree
)

Parameters

function  Func<Double, Double>
A delegate that represents the function to interpolate.
lowerBound  Double
The lower bound of the interval.
upperBound  Double
The upper bound of the interval.
degree  Int32
The desired degree of the interpolating polynomial.

Return Value

BarycentricSeries
A BarycentricSeries that interpolates function over the interval from lowerBound to upperBound through the Chebyshev points of the second kind of degree degree.

Exceptions

ArgumentException

The interval has zero length.

ArgumentNullException

function is null.

ArgumentOutOfRangeException

degree is less than zero.

See Also