us.ihmc.utilities.math.trajectories
Class LinearInterpolater

java.lang.Object
  extended by us.ihmc.utilities.math.trajectories.LinearInterpolater

public class LinearInterpolater
extends java.lang.Object


Constructor Summary
LinearInterpolater(java.util.ArrayList<java.lang.Double> xPointsArrayList)
           
LinearInterpolater(java.util.ArrayList<java.lang.Double> xPointsArrayList, java.util.ArrayList<java.lang.Double> yPointsArrayList)
           
LinearInterpolater(double[] xPoints, double[] yPoints)
          xPoints must be in increasing order
 
Method Summary
 double getMaxX()
           
 double getMinX()
           
 double getPoint(double xPointValue)
           
 java.util.ArrayList<java.lang.Double> getXpointsCopy()
           
 java.util.ArrayList<java.lang.Double> getYpointsCopy()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearInterpolater

public LinearInterpolater(double[] xPoints,
                          double[] yPoints)
xPoints must be in increasing order

Parameters:
xPoints - double[]
yPoints - double[]

LinearInterpolater

public LinearInterpolater(java.util.ArrayList<java.lang.Double> xPointsArrayList,
                          java.util.ArrayList<java.lang.Double> yPointsArrayList)
                   throws java.lang.Exception
Throws:
java.lang.Exception

LinearInterpolater

public LinearInterpolater(java.util.ArrayList<java.lang.Double> xPointsArrayList)
                   throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getPoint

public double getPoint(double xPointValue)

getXpointsCopy

public java.util.ArrayList<java.lang.Double> getXpointsCopy()

getYpointsCopy

public java.util.ArrayList<java.lang.Double> getYpointsCopy()

getMaxX

public double getMaxX()

getMinX

public double getMinX()

main

public static void main(java.lang.String[] args)