예제 #1
0
 def test_clipped_mean(self):
     dist = np.array([
         5, 5, 4, 7, 7, 4, 3, 5, 2, 6, 5, 12, 0, 9, 10, 13, 2, 14, 6, 3, 50
     ])
     results = astrotools.clipped_mean(dist)
     expected_values = (6.1, 3.7)
     assert np.allclose(results, expected_values)
예제 #2
0
 def test_clipped_mean(self):
     dist = np.array([ 5,  5,  4,  7,  7,  4,  3,  5,  2,  6,  5, 12,  0,
                    9, 10, 13,  2, 14,  6,  3, 50])
     results = astrotools.clipped_mean(dist)
     expected_values = (6.1, 3.7)
     assert np.allclose(results, expected_values)