MCPcopy Create free account
hub / github.com/numpy/numpy / test_simple

Method test_simple

numpy/lib/tests/test_function_base.py:2479–2490  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2477class TestKaiser:
2478
2479 def test_simple(self):
2480 assert_(np.isfinite(kaiser(1, 1.0)))
2481 assert_almost_equal(kaiser(0, 1.0),
2482 np.array([]))
2483 assert_almost_equal(kaiser(2, 1.0),
2484 np.array([0.78984831, 0.78984831]))
2485 assert_almost_equal(kaiser(5, 1.0),
2486 np.array([0.78984831, 0.94503323, 1.,
2487 0.94503323, 0.78984831]))
2488 assert_almost_equal(kaiser(5, 1.56789),
2489 np.array([0.58285404, 0.88409679, 1.,
2490 0.88409679, 0.58285404]))
2491
2492 def test_int_beta(self):
2493 kaiser(3, 4)

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
kaiserFunction · 0.90
assert_almost_equalFunction · 0.90

Tested by

no test coverage detected