Class BarycentricRationalInterpolatorTest

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

class BarycentricRationalInterpolatorTest extends Object
  • Field Details

  • Constructor Details

    • BarycentricRationalInterpolatorTest

      BarycentricRationalInterpolatorTest()
  • Method Details

    • interpolate_whenFirstDegreePolynomial_returnsExpectedResult

      @Test void interpolate_whenFirstDegreePolynomial_returnsExpectedResult() throws com.irurueta.sorting.SortingException
      Throws:
      com.irurueta.sorting.SortingException
    • interpolate_whenSecondDegreePolynomial_returnsExpectedResult

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

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

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

      @Test void interpolate_whenFifthDegreePolynomial_returnsExpectedResult() throws com.irurueta.sorting.SortingException
      Throws:
      com.irurueta.sorting.SortingException
    • interpolate_whenMismatchedLength_throwsIllegalArgumentException

      @Test void interpolate_whenMismatchedLength_throwsIllegalArgumentException()
    • interpolate_whenNotEnoughSamples_throwsIllegalArgumentException

      @Test void interpolate_whenNotEnoughSamples_throwsIllegalArgumentException()
    • interpolate_whenTooManyPointsToTakeIntoAccount_throwsIllegalArgumentException

      @Test void interpolate_whenTooManyPointsToTakeIntoAccount_throwsIllegalArgumentException()
    • assertInterpolation

      private static void assertInterpolation(int degree) throws com.irurueta.sorting.SortingException
      Throws:
      com.irurueta.sorting.SortingException
    • buildPolynomial

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