Class RationalInterpolatorTest

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

class RationalInterpolatorTest extends Object
  • Field Details

  • Constructor Details

    • RationalInterpolatorTest

      RationalInterpolatorTest()
  • Method Details

    • interpolate_whenFirstDegreePolynomial_returnsExpectedResult

      @Test void interpolate_whenFirstDegreePolynomial_returnsExpectedResult()
    • interpolate_whenSecondDegreePolynomial_returnsExpectedResult

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

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

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

      @Test void interpolate_whenFifthDegreePolynomial_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()
    • interpolate_whenNotEnoughSamplesToTakeIntoAccount_throwsIllegalArgumentException

      @Test void interpolate_whenNotEnoughSamplesToTakeIntoAccount_throwsIllegalArgumentException()
    • interpolate_whenTooManyPointsToTakeIntoAccount_throwsIllegalArgumentException

      @Test void interpolate_whenTooManyPointsToTakeIntoAccount_throwsIllegalArgumentException()
    • assertInterpolation

      private static void assertInterpolation(int degree, double error) 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(int degree, double[] roots)