Class Polynomial

java.lang.Object
gda.analysis.numerical.interpolation.Polynomial

public class Polynomial extends Object
A polynomial point interpolation algorithm
  • Constructor Details

    • Polynomial

      public Polynomial()
  • Method Details

    • polynomialInterpolation

      public static double[] polynomialInterpolation(double[] xa, double[] ya, double x)
      Given arrays xa[0..n-1] and ya[0..n-1], and given a value x, this routine returns a value y, and an error estimate dy. If P(x) is the polynomial of degree n - 1 such that P(xai) = yai, i = 0,..., n-1, then the returned value y = P(x). see numerical recipies polint
      Parameters:
      xa -
      ya -
      x -
      Returns:
      a double array containing the interpolated value of y and dy at x