Class LinearInterpolatorTest
java.lang.Object
com.irurueta.numerical.interpolation.LinearInterpolatorTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final double
private static final int
private static final double
private static final int
private static final double
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
assertInterpolation
(int samples) private static com.irurueta.numerical.polynomials.Polynomial
buildPolynomial
(double[] roots) (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:
-
DEGREE
private static final int DEGREE- See Also:
-
MIN_SAMPLES
private static final int MIN_SAMPLES- See Also:
-
ABSOLUTE_ERROR
private static final double ABSOLUTE_ERROR- See Also:
-
-
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)
-