Fits a polynomial of a given degree to a data set in accordance with the least squares approach and returned the values of the fitted function over the same range of the x-coordinate as the given data set.
[Visual Basic]
Overloads Public Shared Function TrendLinePolynomial( _
ByVal sc As SeriesCollection, _
ByVal degree As Integer _
) As SeriesCollection
[C#]
public static SeriesCollection TrendLinePolynomial(
SeriesCollection sc,
int degree
);
For example, if we fit a polynomial of degree 2, then we fit the quadratic polynomial (i.e. f(x) = a_0 + a_1 x + a_2 x^2); similarly if we fit a polynomial of degree 3, then we fit the cubic polynomial (i.e. f(x) = a_0 + a_1 x + a_2 x^2 + a_3 x^3).
ForecastEngine Class | ForecastEngine Members | Overload List | Allows the values of the fitted function to be evaluated over an extended range. That is, a range in the x-coordinate greater than the original given data set.
2002 - 2005 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.