(self)
| 2120 | class TestTrapz: |
| 2121 | |
| 2122 | def test_simple(self): |
| 2123 | x = np.arange(-10, 10, .1) |
| 2124 | r = trapz(np.exp(-.5 * x ** 2) / np.sqrt(2 * np.pi), dx=0.1) |
| 2125 | # check integral of normal equals 1 |
| 2126 | assert_almost_equal(r, 1, 7) |
| 2127 | |
| 2128 | def test_ndim(self): |
| 2129 | x = np.linspace(0, 1, 3) |
nothing calls this directly
no test coverage detected