Class Rational
java.lang.Object
gda.analysis.numerical.interpolation.Rational
Diagonal Rational interpolation Class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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
-