def test_cohesion(self):
        
        distances =  CondensedMatrix( [ 1., 2., 3., 4.,
                                            5., 6., 7., 
                                                8., 9., 
                                                   10.])
        
        clusters = [Cluster(None, elements=[0,1,2]),
                      Cluster(None, elements=[3,4])]
        clustering = Clustering(clusters)
        calculator = CohesionCalculator()
        
        # cohesion of cluster 1: 1/3 * 8 
        # cohesion of cluster 2: 1/2 * 10
        # max_cohesion =  11 (1/5 * 55)
        # final cohesion = 0.696945
        self.assertAlmostEqual(1-0.696945,calculator.evaluate(clustering, distances),places = 4)
dataset/ETHPy150Open victor-gil-sepulveda/pyProCT/pyproct/clustering/evaluation/metrics/test/TestCohesion.py/TestBoundedMetrics.test_cohesion/original