MCPcopy Index your code
hub / github.com/numpy/numpy / test_simple

Method test_simple

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

Source from the content-addressed store, hash-verified

2748class TestKaiser:
2749
2750 def test_simple(self):
2751 assert_(np.isfinite(kaiser(1, 1.0)))
2752 assert_almost_equal(kaiser(0, 1.0),
2753 np.array([]))
2754 assert_almost_equal(kaiser(2, 1.0),
2755 np.array([0.78984831, 0.78984831]))
2756 assert_almost_equal(kaiser(5, 1.0),
2757 np.array([0.78984831, 0.94503323, 1.,
2758 0.94503323, 0.78984831]))
2759 assert_almost_equal(kaiser(5, 1.56789),
2760 np.array([0.58285404, 0.88409679, 1.,
2761 0.88409679, 0.58285404]))
2762
2763 def test_int_beta(self):
2764 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