Esempio n. 1
0
 def test_boundaries_from_points(self):
     centers = np.array([1., 2., 4., 8.])
     bounds = funcs.boundaries_from_points(centers)
     self.assertTrue(np.array_equal(bounds, np.array([0.5, 1.5, 3, 6, 10])))
Esempio n. 2
0
 def test_boundaries_from_points(self):
     centers = np.array([1., 2., 4., 8.])
     bounds = funcs.boundaries_from_points(centers)
     self.assertTrue(np.array_equal(bounds, np.array([0.5, 1.5, 3, 6, 10])))