ca.uol.aig.fts.fitting
Class CubicSplineInterpolation

java.lang.Object
  extended by ca.uol.aig.fts.fitting.CubicSplineInterpolation

public class CubicSplineInterpolation
extends java.lang.Object

Optimized CubicSpline Interpolator


Constructor Summary
CubicSplineInterpolation(double[] x_orig, double[] x_new)
          Constructor.
 
Method Summary
 double[] interpolate(double[] y_orig)
          Interpolate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CubicSplineInterpolation

public CubicSplineInterpolation(double[] x_orig,
                                double[] x_new)
Constructor.

Parameters:
x_orig - the values of x-axis to be interpolate
x_new - the values of the interpolated x-axis
Method Detail

interpolate

public double[] interpolate(double[] y_orig)
Interpolate

Parameters:
y_orig - the values of y-axis corresponding to x_orig
Returns:
the values of the interpolate y values corresponding to x_new