Class Interpolator
java.lang.Object
gda.analysis.numerical.interpolation.Interpolator
Methods for interpolation of DataVectors
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataVectorcubicSpline(DataVector input_x, DataVector input_y, DataVector desired_x) Interpolate an x,y data set to a desired x spacingstatic doublelinearInterpolatedPoint(DataVector input_x, DataVector input_y, double desired_x) static voidstatic double[]polyInterpolatedPoint(DataVector input_x, DataVector input_y, double desired_x, int noOfPoints) Find y for a given point desired_x in the dataset an input_x,input_y Using polynomial interpolation This routine will try to use 7 points adjacent to the desired x pointstatic double[]ratInterpolatedPoint(DataVector input_x, DataVector input_y, double desired_x, int noOfPoints) Find y for a given point desired_x in the dataset an input_x,input_y Using rational interpolation
-
Constructor Details
-
Interpolator
public Interpolator()
-
-
Method Details
-
linearInterpolatedPoint
public static double linearInterpolatedPoint(DataVector input_x, DataVector input_y, double desired_x) - Parameters:
input_x-input_y-desired_x-- Returns:
- interpolated point y
-
cubicSpline
Interpolate an x,y data set to a desired x spacing- Parameters:
input_x-input_y-desired_x-- Returns:
- y values at desired spacing
-
polyInterpolatedPoint
public static double[] polyInterpolatedPoint(DataVector input_x, DataVector input_y, double desired_x, int noOfPoints) Find y for a given point desired_x in the dataset an input_x,input_y Using polynomial interpolation This routine will try to use 7 points adjacent to the desired x point- Parameters:
input_x-input_y-desired_x-noOfPoints-- Returns:
- y value and error in y at desired_x value
-
ratInterpolatedPoint
public static double[] ratInterpolatedPoint(DataVector input_x, DataVector input_y, double desired_x, int noOfPoints) Find y for a given point desired_x in the dataset an input_x,input_y Using rational interpolation- Parameters:
input_x-input_y-desired_x-noOfPoints-- Returns:
- y values at desired_x value
-
main
- Parameters:
args-
-