Class Rational

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

public class Rational extends Object
Diagonal Rational interpolation Class.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double[]
    ratint(double[] xa, double[] ya, double x)
    Given arrays xa[0..n-1] and ya[0..n-1], and given a value of x, this routine returns a value of y and an accuracy estimate dy.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Rational

      public Rational()
  • Method Details

    • ratint

      public static double[] ratint(double[] xa, double[] ya, double x)
      Given arrays xa[0..n-1] and ya[0..n-1], and given a value of x, this routine returns a value of y and an accuracy estimate dy. The value returned is that of the diagonal rational function, evaluated at x, which passes through the n points (xai, yai), i = 0,...,n-1. (see numerical recipies ratint)
      Parameters:
      xa -
      ya -
      x -
      Returns:
      a double array containing the interpolated value of y and dy at x