Class CubicSplineInterpolatorTest
java.lang.Object
com.irurueta.numerical.interpolation.CubicSplineInterpolatorTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final double
private static final double
private static final double
private static final int
private static final double
private static final double
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
assertInterpolation
(int degree, int samples, double error) private static com.irurueta.numerical.polynomials.Polynomial
buildPolynomial
(int degree, double[] roots) (package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
-
Field Details
-
MIN_VALUE
private static final double MIN_VALUE- See Also:
-
MAX_VALUE
private static final double MAX_VALUE- See Also:
-
SAMPLES
private static final int SAMPLES- See Also:
-
INTERPOLATIONS
private static final int INTERPOLATIONS- See Also:
-
ABSOLUTE_ERROR_1
private static final double ABSOLUTE_ERROR_1- See Also:
-
ABSOLUTE_ERROR_2
private static final double ABSOLUTE_ERROR_2- See Also:
-
ABSOLUTE_ERROR_3
private static final double ABSOLUTE_ERROR_3- See Also:
-
-
Constructor Details
-
CubicSplineInterpolatorTest
CubicSplineInterpolatorTest()
-
-
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_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_whenSecondDegreePolynomialMinimumSamples_returnsExpectedResult
@Test void interpolate_whenSecondDegreePolynomialMinimumSamples_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_whenThirdDegreePolynomialMinimumSamples_returnsExpectedResult
@Test void interpolate_whenThirdDegreePolynomialMinimumSamples_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 degree, int samples, 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)
-