Class Lagrange

java.lang.Object
  extended byLagrange
All Implemented Interfaces:
InterpolationImpl

public class Lagrange
extends java.lang.Object
implements InterpolationImpl

Interpolation de Lagrange

Author:
Tachouct Mustapha

Field Summary
private  double[] DIV
          table des diviseurs
private  double[] F
          les Fi
private  int MAX_N
          nombre maximum de points
private  int N
          nombre de points
private  double[] X
          les Xi
 
Constructor Summary
(package private) Lagrange(double[] x, double[] f)
          constructeur
(package private) Lagrange(double[] x, double[] f, int n)
          constructeur
(package private) Lagrange(java.lang.String fileName)
          constructeur
 
Method Summary
 void addPoint(double x, double fx)
          ajoute un point
 double getError(double x, double M)
          retourne l'erreur
 Polynome getPolynome()
          retourne un vrai Polynome de degree N
private  Polynome L(int k)
          retourne un Polynome Lk(x)
private  double L(int k, double x)
          calcul les Lk(x)
 double P(double x)
          calcul P(x)
private  void setDIV()
          initialise la table des divisions
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

X

private double[] X
les Xi


F

private double[] F
les Fi


DIV

private double[] DIV
table des diviseurs


N

private int N
nombre de points


MAX_N

private int MAX_N
nombre maximum de points

Constructor Detail

Lagrange

Lagrange(double[] x,
         double[] f)
constructeur


Lagrange

Lagrange(double[] x,
         double[] f,
         int n)
constructeur


Lagrange

Lagrange(java.lang.String fileName)
constructeur

Method Detail

L

private double L(int k,
                 double x)
calcul les Lk(x)


setDIV

private void setDIV()
initialise la table des divisions


L

private Polynome L(int k)
retourne un Polynome Lk(x)


P

public double P(double x)
calcul P(x)

Specified by:
P in interface InterpolationImpl

addPoint

public void addPoint(double x,
                     double fx)
ajoute un point

Specified by:
addPoint in interface InterpolationImpl

getPolynome

public Polynome getPolynome()
retourne un vrai Polynome de degree N

Specified by:
getPolynome in interface InterpolationImpl

getError

public double getError(double x,
                       double M)
retourne l'erreur


toString

public java.lang.String toString()