PHPExcel
[ class tree: PHPExcel ] [ index: PHPExcel ] [ all elements ]

Class: LagrangeInterpolation

Source Location: /PHPExcel/Shared/JAMA/examples/LagrangeInterpolation.php

Class Overview


Given n points (x0,y0)...(xn-1,yn-1), the following methid computes the polynomial factors of the n-1't degree polynomial passing through the n points.


Author(s):

  • Jacob Dreyer
  • Paul Meagher (port to PHP and minor changes)

Methods



Class Details

[line 21]
Given n points (x0,y0)...(xn-1,yn-1), the following methid computes the polynomial factors of the n-1't degree polynomial passing through the n points.

Example: Passing in three points (2,3) (1,4) and (3,7) will produce the results [2.5, -8.5, 10] which means that the points are on the curve y = 2.5x² - 8.5x + 10.




Tags:

author:  Jacob Dreyer
author:  Paul Meagher (port to PHP and minor changes)
see:  http://geosoft.no/software/lagrange/LagrangeInterpolation.java.html


[ Top ]


Class Methods


method findPolynomialFactors [line 23]

void findPolynomialFactors( $x, $y)



Tags:

access:  public


Parameters:

   $x  
   $y  

[ Top ]


Documentation generated on Sat, 19 May 2012 14:37:40 +0200 by phpDocumentor 1.4.4