Class LinearInterpolatorTest

java.lang.Object
com.irurueta.numerical.interpolation.LinearInterpolatorTest

class LinearInterpolatorTest extends Object
  • Field Details

  • Constructor Details

    • LinearInterpolatorTest

      LinearInterpolatorTest()
  • Method Details

    • interpolate_whenFirstDegreePolynomial_returnsExpectedResult

      @Test void interpolate_whenFirstDegreePolynomial_returnsExpectedResult() throws com.irurueta.numerical.interpolation.InterpolationException, com.irurueta.sorting.SortingException
      Throws:
      com.irurueta.numerical.interpolation.InterpolationException
      com.irurueta.sorting.SortingException
    • interpolate_whenFirstDegreePolynomialMinimumSamples_returnsExpectedResult

      @Test void interpolate_whenFirstDegreePolynomialMinimumSamples_returnsExpectedResult() throws com.irurueta.numerical.interpolation.InterpolationException, com.irurueta.sorting.SortingException
      Throws:
      com.irurueta.numerical.interpolation.InterpolationException
      com.irurueta.sorting.SortingException
    • interpolate_whenMismatchedLength_throwsIllegalArgumentException

      @Test void interpolate_whenMismatchedLength_throwsIllegalArgumentException()
    • interpolate_whenNotEnoughSamples_throwsIllegalArgumentException

      @Test void interpolate_whenNotEnoughSamples_throwsIllegalArgumentException()
    • assertInterpolation

      private static void assertInterpolation(int samples) throws com.irurueta.numerical.interpolation.InterpolationException, com.irurueta.sorting.SortingException
      Throws:
      com.irurueta.numerical.interpolation.InterpolationException
      com.irurueta.sorting.SortingException
    • buildPolynomial

      private static com.irurueta.numerical.polynomials.Polynomial buildPolynomial(double[] roots)