org.apache.commons.math3.analysis.interpolation
Class LinearInterpolatorTest

java.lang.Object
  extended by org.apache.commons.math3.analysis.interpolation.LinearInterpolatorTest

public class LinearInterpolatorTest
extends Object

Test the LinearInterpolator.


Field Summary
protected  double coefficientTolerance
          error tolerance for interpolating polynomial coefficients
protected  double interpolationTolerance
          error tolerance for interpolated values
protected  double knotTolerance
          error tolerance for spline interpolator value at knot points
 
Constructor Summary
LinearInterpolatorTest()
           
 
Method Summary
 void testIllegalArguments()
           
 void testInterpolateLinear()
           
 void testInterpolateLinearDegenerateThreeSegment()
           
 void testInterpolateLinearDegenerateTwoSegment()
           
protected  void verifyInterpolation(UnivariateFunction f, double[] x, double[] y)
          verifies that f(x[i]) = y[i] for i = 0..n-1 where n is common length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

knotTolerance

protected double knotTolerance
error tolerance for spline interpolator value at knot points


coefficientTolerance

protected double coefficientTolerance
error tolerance for interpolating polynomial coefficients


interpolationTolerance

protected double interpolationTolerance
error tolerance for interpolated values

Constructor Detail

LinearInterpolatorTest

public LinearInterpolatorTest()
Method Detail

testInterpolateLinearDegenerateTwoSegment

public void testInterpolateLinearDegenerateTwoSegment()

testInterpolateLinearDegenerateThreeSegment

public void testInterpolateLinearDegenerateThreeSegment()

testInterpolateLinear

public void testInterpolateLinear()

testIllegalArguments

public void testIllegalArguments()

verifyInterpolation

protected void verifyInterpolation(UnivariateFunction f,
                                   double[] x,
                                   double[] y)
verifies that f(x[i]) = y[i] for i = 0..n-1 where n is common length.



Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.