(self)
| 1906 | assert_array_equal(digitize(x, bins), np.arange(11)) |
| 1907 | |
| 1908 | def test_random(self): |
| 1909 | x = rand(10) |
| 1910 | bin = np.linspace(x.min(), x.max(), 10) |
| 1911 | assert_(np.all(digitize(x, bin) != 0)) |
| 1912 | |
| 1913 | def test_right_basic(self): |
| 1914 | x = [1, 5, 4, 10, 8, 11, 0] |