Package com.singularsys.exttests
Class StatisticalTest
- java.lang.Object
-
- com.singularsys.exttests.StatisticalTest
-
public class StatisticalTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StatisticalTest()
-
Method Summary
-
-
-
Field Detail
-
meanPfmc
protected Mean meanPfmc
-
jep
protected Jep jep
-
field
protected FieldI field
-
numf
protected NumberFactory numf
-
stack
protected java.util.Stack<java.lang.Object> stack
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
mean_with_four_argument_is_average
public void mean_with_four_argument_is_average() throws java.lang.Exception
- Throws:
java.lang.Exception
-
mean_with_no_arguments_fails
public void mean_with_no_arguments_fails() throws java.lang.Exception
- Throws:
java.lang.Exception
-
mean_with_one_arguments_gives_that_value
public void mean_with_one_arguments_gives_that_value() throws java.lang.Exception
- Throws:
java.lang.Exception
-
mean_with_double_array_arguments
public void mean_with_double_array_arguments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
min_with_double_array_arguments
public void min_with_double_array_arguments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
mean_with_object_array_arguments
public void mean_with_object_array_arguments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
mean_with_Number_array_arguments
public void mean_with_Number_array_arguments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
mean_with_List_of_doubles_arguments
public void mean_with_List_of_doubles_arguments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
mean_with_VectorI_argument
public void mean_with_VectorI_argument() throws java.lang.Exception
- Throws:
java.lang.Exception
-
mean_with_MatrixI_argument
public void mean_with_MatrixI_argument() throws java.lang.Exception
- Throws:
java.lang.Exception
-
mean_with_mixed_argument_types
public void mean_with_mixed_argument_types() throws java.lang.Exception
- Throws:
java.lang.Exception
-
count_with_mixed_argument_types
public void count_with_mixed_argument_types() throws java.lang.Exception
- Throws:
java.lang.Exception
-
median_with_odd_number_of_arguments
public void median_with_odd_number_of_arguments() throws EvaluationException
- Throws:
EvaluationException
-
median_with_odd_argument_is_that_value
public void median_with_odd_argument_is_that_value() throws EvaluationException
- Throws:
EvaluationException
-
median_with_no_arguments_fails
public void median_with_no_arguments_fails() throws EvaluationException
- Throws:
EvaluationException
-
median_with_even_number_of_arguments
public void median_with_even_number_of_arguments() throws EvaluationException
- Throws:
EvaluationException
-
mode_with_single_mode_returns_that_value
public void mode_with_single_mode_returns_that_value() throws EvaluationException
- Throws:
EvaluationException
-
mode_with_bimodal_returns_NaN
public void mode_with_bimodal_returns_NaN() throws EvaluationException
- Throws:
EvaluationException
-
mode_with_empty_data_returns_NaN
public void mode_with_empty_data_returns_NaN() throws EvaluationException
- Throws:
EvaluationException
-
mode_with_single_item_returns_that_item
public void mode_with_single_item_returns_that_item() throws EvaluationException
- Throws:
EvaluationException
-
min_with_four_argument_is_smallest
public void min_with_four_argument_is_smallest() throws java.lang.Exception
- Throws:
java.lang.Exception
-
min_with_one_argument_is_that_value
public void min_with_one_argument_is_that_value() throws java.lang.Exception
- Throws:
java.lang.Exception
-
min_with_no_arguments_fails
public void min_with_no_arguments_fails() throws java.lang.Exception
- Throws:
java.lang.Exception
-
max_with_four_argument_is_largest
public void max_with_four_argument_is_largest() throws java.lang.Exception
- Throws:
java.lang.Exception
-
range_with_four_argument_is_highest_minus_lowest
public void range_with_four_argument_is_highest_minus_lowest() throws java.lang.Exception
- Throws:
java.lang.Exception
-
sum_with_four_argument_is_sum
public void sum_with_four_argument_is_sum() throws java.lang.Exception
- Throws:
java.lang.Exception
-
sum_with_no_argument_is_zero
public void sum_with_no_argument_is_zero() throws java.lang.Exception
- Throws:
java.lang.Exception
-
sum_with_one_argument_is_that_value
public void sum_with_one_argument_is_that_value() throws java.lang.Exception
- Throws:
java.lang.Exception
-
product_with_four_argument_is_product
public void product_with_four_argument_is_product() throws java.lang.Exception
- Throws:
java.lang.Exception
-
product_with_one_argument_is_that_value
public void product_with_one_argument_is_that_value() throws java.lang.Exception
- Throws:
java.lang.Exception
-
product_with_no_arguments_is_one
public void product_with_no_arguments_is_one() throws java.lang.Exception
- Throws:
java.lang.Exception
-
population_variance_with_ten_arguments
public void population_variance_with_ten_arguments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
population_variance_with_one_argument_is_zero
public void population_variance_with_one_argument_is_zero() throws java.lang.Exception
- Throws:
java.lang.Exception
-
population_variance_with_no_arguments_fails
public void population_variance_with_no_arguments_fails() throws java.lang.Exception
- Throws:
java.lang.Exception
-
population_variance_with_zero_length_array_fails
public void population_variance_with_zero_length_array_fails() throws java.lang.Exception
- Throws:
java.lang.Exception
-
population_standard_deviation_with_ten_arguments
public void population_standard_deviation_with_ten_arguments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
sample_variance_with_ten_arguments
public void sample_variance_with_ten_arguments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
sample_variance_with_one_arguments_in_NaN
public void sample_variance_with_one_arguments_in_NaN() throws java.lang.Exception
- Throws:
java.lang.Exception
-
sample_variance_with_no_arguments_fails
public void sample_variance_with_no_arguments_fails() throws java.lang.Exception
- Throws:
java.lang.Exception
-
sample_standard_deviation_with_ten_arguments
public void sample_standard_deviation_with_ten_arguments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
sample_standard_deviation_with_BigDecimal_arguments
public void sample_standard_deviation_with_BigDecimal_arguments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
sample_variance_with_BigDecimal_arguments
public void sample_variance_with_BigDecimal_arguments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
population_standard_deviation_with_BigDecimal_arguments
public void population_standard_deviation_with_BigDecimal_arguments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
population_variance_with_BigDecimal_arguments
public void population_variance_with_BigDecimal_arguments() throws java.lang.Exception
- Throws:
java.lang.Exception
-
competition_rank_gives_tied_elements_the_lowest_value
public void competition_rank_gives_tied_elements_the_lowest_value() throws java.lang.Exception
Fractional ranking, mean of ordinal ranks of tied elements 4,2.5,2.5,1- Throws:
java.lang.Exception
-
competition_rank_with_missing_item_argument_is_minusone
public void competition_rank_with_missing_item_argument_is_minusone() throws java.lang.Exception
- Throws:
java.lang.Exception
-
competition_rank_with_one_argument_is_one
public void competition_rank_with_one_argument_is_one() throws java.lang.Exception
- Throws:
java.lang.Exception
-
competition_rank_with_no_arguments_is_minusone
public void competition_rank_with_no_arguments_is_minusone() throws java.lang.Exception
- Throws:
java.lang.Exception
-
dense_rank_gives_lowest_possible_non_clashing_values
public void dense_rank_gives_lowest_possible_non_clashing_values() throws java.lang.Exception
- Throws:
java.lang.Exception
-
ordinal_rank_cannot_be_calulated
public void ordinal_rank_cannot_be_calulated() throws java.lang.Exception
- Throws:
java.lang.Exception
-
increasing_competition_rank
public void increasing_competition_rank() throws java.lang.Exception
- Throws:
java.lang.Exception
-
increasing_dense_rank
public void increasing_dense_rank() throws java.lang.Exception
- Throws:
java.lang.Exception
-
increasing_fractional_rank
public void increasing_fractional_rank() throws java.lang.Exception
- Throws:
java.lang.Exception
-
ordinal_ranks_gives_each_elements_unique_value
public void ordinal_ranks_gives_each_elements_unique_value() throws java.lang.Exception
- Throws:
java.lang.Exception
-
increasing_competition_ranks_gives_compact_indicies
public void increasing_competition_ranks_gives_compact_indicies() throws java.lang.Exception
- Throws:
java.lang.Exception
-
increasing_dense_ranks_gives_compact_indicies
public void increasing_dense_ranks_gives_compact_indicies() throws java.lang.Exception
- Throws:
java.lang.Exception
-
increasing_fraction_ranks_gives_indicies_average_of_sorted_positions
public void increasing_fraction_ranks_gives_indicies_average_of_sorted_positions() throws java.lang.Exception
- Throws:
java.lang.Exception
-
increasing_ordinal_ranks_gives_tied_entries_unique_indicies
public void increasing_ordinal_ranks_gives_tied_entries_unique_indicies() throws java.lang.Exception
- Throws:
java.lang.Exception
-
competition_ranks_gives_tied_entries_lowest_indicies
public void competition_ranks_gives_tied_entries_lowest_indicies() throws java.lang.Exception
- Throws:
java.lang.Exception
-
competition_ranks_with_no_entries_gives_empty_array
public void competition_ranks_with_no_entries_gives_empty_array() throws java.lang.Exception
- Throws:
java.lang.Exception
-
dense_ranks_gives_compreseed_indicies
public void dense_ranks_gives_compreseed_indicies() throws java.lang.Exception
- Throws:
java.lang.Exception
-
increasing_ordinal_ranks_with_many_reps_gives_tied_entries_unique_indicies
public void increasing_ordinal_ranks_with_many_reps_gives_tied_entries_unique_indicies() throws java.lang.Exception
- Throws:
java.lang.Exception
-
increasing_competition_ranks_with_many_reps_gives_compact_indicies
public void increasing_competition_ranks_with_many_reps_gives_compact_indicies() throws java.lang.Exception
- Throws:
java.lang.Exception
-
increasing_dense_ranks_with_many_reps_gives_compact_indicies
public void increasing_dense_ranks_with_many_reps_gives_compact_indicies() throws java.lang.Exception
- Throws:
java.lang.Exception
-
fractional_rank_gives_tied_element_average_of_sorted_positions
public void fractional_rank_gives_tied_element_average_of_sorted_positions() throws java.lang.Exception
- Throws:
java.lang.Exception
-
fraction_ranks_gives_indicies_average_of_sorted_positions
public void fraction_ranks_gives_indicies_average_of_sorted_positions() throws java.lang.Exception
- Throws:
java.lang.Exception
-
increasing_fraction_ranks_gives_with_many_reps_indicies_average_of_sorted_positions
public void increasing_fraction_ranks_gives_with_many_reps_indicies_average_of_sorted_positions() throws java.lang.Exception
- Throws:
java.lang.Exception
-
ranks
protected java.lang.Object[] ranks(java.lang.Double[] array, Ranks pfmc) throws EvaluationException
- Throws:
EvaluationException
-
ranks_with_matrix_components_takes_and_returns_VectorI_using_the_MatrixList_function_from_Jep
public void ranks_with_matrix_components_takes_and_returns_VectorI_using_the_MatrixList_function_from_Jep() throws java.lang.Exception
- Throws:
java.lang.Exception
-
ranks_with_matrix_components_takes_and_returns_VectorI_using_explicit_matrix_factory
public void ranks_with_matrix_components_takes_and_returns_VectorI_using_explicit_matrix_factory() throws java.lang.Exception
- Throws:
java.lang.Exception
-
ranks_with_matrixListProcessor_returns_VectorI
public void ranks_with_matrixListProcessor_returns_VectorI() throws java.lang.Exception
- Throws:
java.lang.Exception
-
sort_sorts
public void sort_sorts() throws java.lang.Exception
- Throws:
java.lang.Exception
-
_decending_sort_sorts
public void _decending_sort_sorts() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testMeanParse
public void testMeanParse() throws JepException
- Throws:
JepException
-
testBinom
public void testBinom() throws EvaluationException
- Throws:
EvaluationException
-
testNormal
public void testNormal()
-
testInverse
public void testInverse()
-
nearest_neighbour_percentiles
public void nearest_neighbour_percentiles() throws EvaluationException
Test data from https://en.wikipedia.org/wiki/Percentile- Throws:
EvaluationException
-
mid_interpolation_percentiles
public void mid_interpolation_percentiles() throws EvaluationException
Test data from https://en.wikipedia.org/wiki/Percentile- Throws:
EvaluationException
-
inclusive_interpolation_percentiles
public void inclusive_interpolation_percentiles() throws EvaluationException
Test data from https://en.wikipedia.org/wiki/Percentile- Throws:
EvaluationException
-
exclusive_interpolation_percentiles
public void exclusive_interpolation_percentiles() throws EvaluationException
Test data from https://en.wikipedia.org/wiki/Percentile- Throws:
EvaluationException
-
median_interpolation_percentiles
public void median_interpolation_percentiles() throws EvaluationException
Hyndman and Fan (1996) recommended method. Test data from https://www.itl.nist.gov/div898/handbook/prc/section2/prc262.htm- Throws:
EvaluationException
-
-