GeoSoft API

no.geosoft.cc.math.calculus
Class LagrangeInterpolation

Object
  |
  +--LagrangeInterpolation

public class LagrangeInterpolation
extends Object

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 is on the curve y = 2.5x? - 8.5x + 10.

Author:
GeoSoft

Constructor Summary
LagrangeInterpolation()
           
 
Method Summary
static double[] findPolynomialFactors(double[] x, double[] y)
           
static void main(String[] args)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LagrangeInterpolation

public LagrangeInterpolation()
Method Detail

findPolynomialFactors

public static double[] findPolynomialFactors(double[] x,
                                             double[] y)
                                      throws RuntimeException
RuntimeException

main

public static void main(String[] args)

GeoSoft API

Copyright © 2004 - Geotechnical Software Services     geosoft.no