(self)
| 2163 | assert_array_equal(digitize(x, bins), np.arange(11)) |
| 2164 | |
| 2165 | def test_random(self): |
| 2166 | x = rand(10) |
| 2167 | bin = np.linspace(x.min(), x.max(), 10) |
| 2168 | assert_(np.all(digitize(x, bin) != 0)) |
| 2169 | |
| 2170 | def test_right_basic(self): |
| 2171 | x = [1, 5, 4, 10, 8, 11, 0] |