cluster.tests.test_hierarchy

Module Contents

Functions

calculate_maximum_distances(Z)
calculate_maximum_inconsistencies(Z,R,k=3)
within_tol(a,b,tol)
test_unsupported_uncondensed_distance_matrix_linkage_warning()
test_euclidean_linkage_value_error()
test_2x2_linkage()
test_node_compare()
test_cut_tree()
test_optimal_leaf_ordering()
test_Heap()
class TestLinkage
test_linkage_non_finite_elements_in_distance_matrix()
test_linkage_empty_distance_matrix()
test_linkage_tdist()
check_linkage_tdist(method)
test_linkage_X()
check_linkage_q(method)
test_compare_with_trivial()
test_optimal_leaf_ordering()
class TestLinkageTies
test_linkage_ties()
check_linkage_ties(method)
class TestInconsistent
test_inconsistent_tdist()
check_inconsistent_tdist(depth)
class TestCopheneticDistance
test_linkage_cophenet_tdist_Z()
test_linkage_cophenet_tdist_Z_Y()
class TestMLabLinkageConversion
test_mlab_linkage_conversion_empty()
test_mlab_linkage_conversion_single_row()
test_mlab_linkage_conversion_multiple_rows()
class TestFcluster
test_fclusterdata()
check_fclusterdata(t, criterion)
test_fcluster()
check_fcluster(t, criterion)
test_fcluster_monocrit()
check_fcluster_monocrit(t)
check_fcluster_maxclust_monocrit(t)
class TestLeaders
test_leaders_single()
class TestIsIsomorphic
test_is_isomorphic_1()
test_is_isomorphic_2()
test_is_isomorphic_3()
test_is_isomorphic_4A()
test_is_isomorphic_4B()
test_is_isomorphic_4C()
test_is_isomorphic_5()
test_is_isomorphic_6()
test_is_isomorphic_7()
help_is_isomorphic_randperm(nobs, nclusters, noniso=False, nerrors=0)
class TestIsValidLinkage
test_is_valid_linkage_various_size()
check_is_valid_linkage_various_size(nrow, ncol, valid)
test_is_valid_linkage_int_type()
test_is_valid_linkage_empty()
test_is_valid_linkage_4_and_up()
test_is_valid_linkage_4_and_up_neg_index_left()
test_is_valid_linkage_4_and_up_neg_index_right()
test_is_valid_linkage_4_and_up_neg_dist()
test_is_valid_linkage_4_and_up_neg_counts()
class TestIsValidInconsistent
test_is_valid_im_int_type()
test_is_valid_im_various_size()
check_is_valid_im_various_size(nrow, ncol, valid)
test_is_valid_im_empty()
test_is_valid_im_4_and_up()
test_is_valid_im_4_and_up_neg_index_left()
test_is_valid_im_4_and_up_neg_index_right()
test_is_valid_im_4_and_up_neg_dist()
class TestNumObsLinkage
test_num_obs_linkage_empty()
test_num_obs_linkage_1x4()
test_num_obs_linkage_2x4()
test_num_obs_linkage_4_and_up()
class TestLeavesList
test_leaves_list_1x4()
test_leaves_list_2x4()
test_leaves_list_Q()
check_leaves_list_Q(method)
test_Q_subtree_pre_order()
class TestCorrespond
test_correspond_empty()
test_correspond_2_and_up()
test_correspond_4_and_up()
test_correspond_4_and_up_2()
test_num_obs_linkage_multi_matrix()
class TestIsMonotonic
test_is_monotonic_empty()
test_is_monotonic_1x4()
test_is_monotonic_2x4_T()
test_is_monotonic_2x4_F()
test_is_monotonic_3x4_T()
test_is_monotonic_3x4_F1()
test_is_monotonic_3x4_F2()
test_is_monotonic_3x4_F3()
test_is_monotonic_tdist_linkage1()
test_is_monotonic_tdist_linkage2()
test_is_monotonic_Q_linkage()
class TestMaxDists
test_maxdists_empty_linkage()
test_maxdists_one_cluster_linkage()
test_maxdists_Q_linkage()
check_maxdists_Q_linkage(method)
class TestMaxInconsts
test_maxinconsts_empty_linkage()
test_maxinconsts_difrow_linkage()
test_maxinconsts_one_cluster_linkage()
test_maxinconsts_Q_linkage()
check_maxinconsts_Q_linkage(method)
class TestMaxRStat
test_maxRstat_invalid_index()
check_maxRstat_invalid_index(i)
test_maxRstat_empty_linkage()
check_maxRstat_empty_linkage(i)
test_maxRstat_difrow_linkage()
check_maxRstat_difrow_linkage(i)
test_maxRstat_one_cluster_linkage()
check_maxRstat_one_cluster_linkage(i)
test_maxRstat_Q_linkage()
check_maxRstat_Q_linkage(method, i)
class TestDendrogram
test_dendrogram_single_linkage_tdist()
test_valid_orientation()
test_dendrogram_plot()
check_dendrogram_plot(orientation)
test_dendrogram_truncate_mode()
test_dendrogram_colors()
calculate_maximum_distances(Z)
calculate_maximum_inconsistencies(Z, R, k=3)
within_tol(a, b, tol)
test_unsupported_uncondensed_distance_matrix_linkage_warning()
test_euclidean_linkage_value_error()
test_2x2_linkage()
test_node_compare()
test_cut_tree()
test_optimal_leaf_ordering()
test_Heap()