edu.stanford.rsl.konrad.utils.interpolation
Class LinearInterpolator

java.lang.Object
  extended by edu.stanford.rsl.konrad.utils.interpolation.Interpolator
      extended by edu.stanford.rsl.konrad.utils.interpolation.LinearInterpolator

public class LinearInterpolator
extends Interpolator

This is a class for interpolating between two data points using a linear polynomial. Interpolation is a method of constructing new data points within the range of a discrete set of known data points. For more on linear interpolation see http://en.wikipedia.org/wiki/Linear_interpolation

Author:
Rotimi X Ojo

Constructor Summary
LinearInterpolator()
           
 
Method Summary
 double InterpolateYValue(double key)
           
 
Methods inherited from class edu.stanford.rsl.konrad.utils.interpolation.Interpolator
setXPoints, setYPoints
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearInterpolator

public LinearInterpolator()
Method Detail

InterpolateYValue

public double InterpolateYValue(double key)
Specified by:
InterpolateYValue in class Interpolator