Package com.singularsys.exttests
Class StatisticalTest
java.lang.Object
com.singularsys.exttests.StatisticalTest
Tests for the
statistical package.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFractional ranking, mean of ordinal ranks of tied elements 4,2.5,2.5,1voidvoidvoidvoidvoidvoidvoidvoidvoidvoidTest data from https://en.wikipedia.org/wiki/PercentilevoidvoidvoidTest data from https://en.wikipedia.org/wiki/PercentilevoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidHyndman and Fan (1996) recommended method.voidvoidvoidvoidvoidTest data from https://en.wikipedia.org/wiki/PercentilevoidvoidvoidvoidvoidvoidvoidvoidvoidTest data from https://en.wikipedia.org/wiki/Percentilevoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected Object[]voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
PRINT_RESULTS
public static final boolean PRINT_RESULTS -
meanPfmc
-
jep
-
field
-
numf
-
stack
-
-
Constructor Details
-
StatisticalTest
public StatisticalTest()
-
-
Method Details
-
mean_with_four_argument_is_average
- Throws:
Exception
-
mean_with_no_arguments_fails
@Test public void mean_with_no_arguments_fails() -
mean_with_one_arguments_gives_that_value
- Throws:
Exception
-
mean_with_double_array_arguments
- Throws:
Exception
-
min_with_double_array_arguments
- Throws:
Exception
-
mean_with_object_array_arguments
- Throws:
Exception
-
mean_with_Number_array_arguments
- Throws:
Exception
-
mean_with_List_of_doubles_arguments
- Throws:
Exception
-
mean_with_VectorI_argument
- Throws:
Exception
-
mean_with_MatrixI_argument
- Throws:
Exception
-
mean_with_mixed_argument_types
- Throws:
Exception
-
count_with_mixed_argument_types
- Throws:
Exception
-
median_with_odd_number_of_arguments
- Throws:
EvaluationException
-
median_with_odd_argument_is_that_value
- Throws:
EvaluationException
-
median_with_no_arguments_fails
@Test public void median_with_no_arguments_fails() -
median_with_even_number_of_arguments
- Throws:
EvaluationException
-
mode_with_single_mode_returns_that_value
- Throws:
EvaluationException
-
mode_with_bimodal_returns_NaN
- Throws:
EvaluationException
-
mode_with_empty_data_returns_NaN
- Throws:
EvaluationException
-
mode_with_single_item_returns_that_item
- Throws:
EvaluationException
-
min_with_four_argument_is_smallest
- Throws:
Exception
-
min_with_one_argument_is_that_value
- Throws:
Exception
-
min_with_no_arguments_fails
@Test public void min_with_no_arguments_fails() -
max_with_four_argument_is_largest
- Throws:
Exception
-
range_with_four_argument_is_highest_minus_lowest
- Throws:
Exception
-
sum_with_four_argument_is_sum
- Throws:
Exception
-
sum_with_no_argument_is_zero
- Throws:
Exception
-
sum_with_one_argument_is_that_value
- Throws:
Exception
-
product_with_four_argument_is_product
- Throws:
Exception
-
product_with_one_argument_is_that_value
- Throws:
Exception
-
product_with_no_arguments_is_one
- Throws:
Exception
-
population_variance_with_ten_arguments
- Throws:
Exception
-
population_variance_with_one_argument_is_zero
- Throws:
Exception
-
population_variance_with_no_arguments_fails
@Test public void population_variance_with_no_arguments_fails() -
population_variance_with_zero_length_array_fails
@Test public void population_variance_with_zero_length_array_fails() -
population_standard_deviation_with_ten_arguments
- Throws:
Exception
-
sample_variance_with_ten_arguments
- Throws:
Exception
-
sample_variance_with_one_arguments_in_NaN
- Throws:
Exception
-
sample_variance_with_no_arguments_fails
@Test public void sample_variance_with_no_arguments_fails() -
sample_standard_deviation_with_ten_arguments
- Throws:
Exception
-
sample_standard_deviation_with_BigDecimal_arguments
- Throws:
Exception
-
sample_variance_with_BigDecimal_arguments
- Throws:
Exception
-
population_standard_deviation_with_BigDecimal_arguments
- Throws:
Exception
-
population_variance_with_BigDecimal_arguments
- Throws:
Exception
-
competition_rank_gives_tied_elements_the_lowest_value
Fractional ranking, mean of ordinal ranks of tied elements 4,2.5,2.5,1- Throws:
Exception
-
competition_rank_with_missing_item_argument_is_minusone
- Throws:
Exception
-
competition_rank_with_one_argument_is_one
- Throws:
Exception
-
competition_rank_with_no_arguments_is_minusone
- Throws:
Exception
-
dense_rank_gives_lowest_possible_non_clashing_values
- Throws:
Exception
-
ordinal_rank_cannot_be_calculated
@Disabled("Ordinal rank cannot be calculate with just the value of the item") @Test public void ordinal_rank_cannot_be_calculated() throws Exception- Throws:
Exception
-
increasing_competition_rank
- Throws:
Exception
-
increasing_dense_rank
- Throws:
Exception
-
increasing_fractional_rank
- Throws:
Exception
-
ordinal_ranks_gives_each_elements_unique_value
- Throws:
Exception
-
increasing_competition_ranks_gives_compact_indices
- Throws:
Exception
-
increasing_dense_ranks_gives_compact_indices
- Throws:
Exception
-
increasing_fraction_ranks_gives_indices_average_of_sorted_positions
@Test public void increasing_fraction_ranks_gives_indices_average_of_sorted_positions() throws Exception- Throws:
Exception
-
increasing_ordinal_ranks_gives_tied_entries_unique_indices
- Throws:
Exception
-
competition_ranks_gives_tied_entries_lowest_indices
- Throws:
Exception
-
competition_ranks_with_no_entries_gives_empty_array
- Throws:
Exception
-
dense_ranks_gives_compressed_indices
- Throws:
Exception
-
increasing_ordinal_ranks_with_many_reps_gives_tied_entries_unique_indices
@Test public void increasing_ordinal_ranks_with_many_reps_gives_tied_entries_unique_indices() throws Exception- Throws:
Exception
-
increasing_competition_ranks_with_many_reps_gives_compact_indices
@Test public void increasing_competition_ranks_with_many_reps_gives_compact_indices() throws Exception- Throws:
Exception
-
increasing_dense_ranks_with_many_reps_gives_compact_indices
- Throws:
Exception
-
fractional_rank_gives_tied_element_average_of_sorted_positions
- Throws:
Exception
-
fraction_ranks_gives_indices_average_of_sorted_positions
- Throws:
Exception
-
increasing_fraction_ranks_gives_with_many_reps_indices_average_of_sorted_positions
@Test public void increasing_fraction_ranks_gives_with_many_reps_indices_average_of_sorted_positions() throws Exception- Throws:
Exception
-
ranks
- Throws:
EvaluationException
-
ranks_with_matrix_components_takes_and_returns_VectorI_using_the_MatrixList_function_from_Jep
@Test public void ranks_with_matrix_components_takes_and_returns_VectorI_using_the_MatrixList_function_from_Jep() throws Exception- Throws:
Exception
-
ranks_with_matrix_components_takes_and_returns_VectorI_using_explicit_matrix_factory
@Test public void ranks_with_matrix_components_takes_and_returns_VectorI_using_explicit_matrix_factory() throws Exception- Throws:
Exception
-
ranks_with_matrixListProcessor_returns_VectorI
- Throws:
Exception
-
sort_sorts
- Throws:
Exception
-
descending_sort_sorts
- Throws:
Exception
-
testMeanParse
- Throws:
JepException
-
testBinom
- Throws:
EvaluationException
-
testNormal
@Test public void testNormal() -
testInverse
@Test public void testInverse() -
nearest_neighbour_percentiles
Test data from https://en.wikipedia.org/wiki/Percentile- Throws:
EvaluationException
-
mid_interpolation_percentiles
Test data from https://en.wikipedia.org/wiki/Percentile- Throws:
EvaluationException
-
inclusive_interpolation_percentiles
Test data from https://en.wikipedia.org/wiki/Percentile- Throws:
EvaluationException
-
exclusive_interpolation_percentiles
Test data from https://en.wikipedia.org/wiki/Percentile- Throws:
EvaluationException
-
median_interpolation_percentiles
Hyndman and Fan (1996) recommended method. Test data from https://www.itl.nist.gov/div898/handbook/prc/section2/prc262.htm- Throws:
EvaluationException
-