Friday 21 November 2008

Lagrange's Interpolation Polynomial



download
Description:

Lagrange's interpolation polynomial is used for the determination of the function on the basis of the given points. In point of fact, the indicator takes the coordinates of the points located between extern int begin and extern int end (marked with the red and blue lines on the chart), and calculates the coordinates of the next points using the Lagrange's interpolation polynomial.

Parameters:

begin - the number of the bar the selection of points' coordinates for the interpolation is begun with. It is marked with the red line;

end - the number of the bar the selection of points' coordinates for the interpolation is finished with. It is marked with the blue line;

numPrognoz - the number of the points located to the left and to the right of the begin and end, that are calculated using the Lagrange's interpolation polynomial.

0 Comments: