def METHOD_NAME(self):
    # 3 samples
    a = [1, 3]
    b = [0, 4]
    c = [2, 5]
    samples = np.array([a, b, c])
    dist = al.average_distance(samples)
    avg_a = (rbf_kernel([a], [b])[0][0] + rbf_kernel([a], [c])[0][0]) / 2
    avg_b = (rbf_kernel([b], [a])[0][0] + rbf_kernel([b], [c])[0][0]) / 2
    avg_c = (rbf_kernel([c], [a])[0][0] + rbf_kernel([c], [b])[0][0]) / 2
    self.assertAlmostEqual(dist[0], avg_a)
    self.assertAlmostEqual(dist[1], avg_b)
    self.assertAlmostEqual(dist[2], avg_c)