def test_between_sample_distances(self): """between_sample_distances should return correct result. """ exp = {'All_Between_Sample_Distances':\ [0.625, 0.623, 0.61, 0.577, 0.729, 0.8, 0.721, 0.765, 0.615,\ 0.642, 0.673, 0.776, 0.744, 0.749, 0.677,0.682, 0.737, 0.734,\ 0.777, 0.733, 0.724, 0.704, 0.696, 0.675, 0.654, 0.696, 0.731,\ 0.758, 0.738, 0.737, 0.718, 0.666, 0.727, 0.6, 0.578,0.623]} self.assertEqual(between_sample_distances(self.dmat), exp)
def test_between_sample_distances(self): """between_sample_distances should return correct result. """ exp = {'All_Between_Sample_Distances':\ [0.625, 0.623, 0.61, 0.577, 0.729, 0.8, 0.721, 0.765, 0.615,\ 0.642, 0.673, 0.776, 0.744, 0.749, 0.677,0.682, 0.737, 0.734,\ 0.777, 0.733, 0.724, 0.704, 0.696, 0.675, 0.654, 0.696, 0.731,\ 0.758, 0.738, 0.737, 0.718, 0.666, 0.727, 0.6, 0.578,0.623]} self.assertEqual(between_sample_distances(self.dmat),exp)