(T, m)
| 255 | |
| 256 | @pytest.mark.parametrize("T, m", test_data) |
| 257 | def test_mstump_include(T, m): |
| 258 | for width in range(T.shape[0]): |
| 259 | for i in range(T.shape[0] - width): |
| 260 | include = np.asarray(range(i, i + width + 1)) |
| 261 | excl_zone = int(np.ceil(m / 4)) |
| 262 | |
| 263 | ref_P, ref_I = naive.mstump(T, m, excl_zone, include) |
| 264 | comp_P, comp_I = mstump(T, m, include) |
| 265 | |
| 266 | npt.assert_almost_equal(ref_P, comp_P) |
| 267 | npt.assert_almost_equal(ref_I, comp_I) |
| 268 | |
| 269 | |
| 270 | @pytest.mark.parametrize("T, m", test_data) |