(self)
| 2186 | assert_array_equal(digitize(x, bins, True), np.arange(11)) |
| 2187 | |
| 2188 | def test_right_open_random(self): |
| 2189 | x = rand(10) |
| 2190 | bins = np.linspace(x.min(), x.max(), 10) |
| 2191 | assert_(np.all(digitize(x, bins, True) != 10)) |
| 2192 | |
| 2193 | def test_monotonic(self): |
| 2194 | x = [-1, 0, 1, 2] |