Esempio n. 1
0
 def test_points_from_boundaries(self):
     bounds = np.array([1., 3, 4, 10])
     centers = funcs.points_from_boundaries(bounds)
     self.assertTrue(np.array_equal(centers, np.array([2., 3.5, 7])))
Esempio n. 2
0
 def test_points_from_boundaries(self):
     bounds = np.array([1., 3, 4, 10])
     centers = funcs.points_from_boundaries(bounds)
     self.assertTrue(np.array_equal(centers, np.array([2., 3.5, 7])))