Class InterpolatedFunction

java.lang.Object
  |
  +--InterpolatedFunction

public class InterpolatedFunction
extends java.lang.Object

Creates a lookup function based on some input points. Assumes the function is piecewise-linear between the input points and returns values based on that assumption. This class was created in order to map PCA widths to actual line widths based on some data from known lines, but could possibly be useful for other functions as well.


Constructor Summary
InterpolatedFunction(double[] x_values, double[] y_values)
          create a new Interpolated Function based on some input data
 
Method Summary
 double getY(double x)
          return Y value for specified X
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterpolatedFunction

public InterpolatedFunction(double[] x_values,
                            double[] y_values)
create a new Interpolated Function based on some input data

Method Detail

getY

public double getY(double x)
return Y value for specified X