@requires_nitime
def test_dpss_windows():
 import nitime as ni
 N = 1000
 half_nbw = 4
 Kmax = int((2 * half_nbw))
 (dpss, eigs) = dpss_windows(N, half_nbw, Kmax, low_bias=False)
 (dpss_ni, eigs_ni) = ni.algorithms.dpss_windows(N, half_nbw, Kmax)
 assert_array_almost_equal(dpss, dpss_ni)
 assert_array_almost_equal(eigs, eigs_ni)
 (dpss, eigs) = dpss_windows(N, half_nbw, Kmax, interp_from=200, low_bias=False)
 (dpss_ni, eigs_ni) = ni.algorithms.dpss_windows(N, half_nbw, Kmax, interp_from=200)
 assert_array_almost_equal(dpss, dpss_ni)
 assert_array_almost_equal(eigs, eigs_ni)

@ requires_nitime def test_dpss_windows ( ) : import nitime as ni N = 1000 half_nbw = 4 Kmax = int ( ( 2 * half_nbw ) ) ( dpss , eigs ) = dpss_windows ( N , half_nbw , Kmax , low_bias = False ) ( dpss_ni , eigs_ni ) = ni . algorithms . dpss_windows ( N , half_nbw , Kmax ) assert_array_almost_equal ( dpss , dpss_ni ) assert_array_almost_equal ( eigs , eigs_ni ) ( dpss , eigs ) = dpss_windows ( N , half_nbw , Kmax , interp_from = 200 , low_bias = False ) ( dpss_ni , eigs_ni ) = ni . algorithms . dpss_windows ( N , half_nbw , Kmax , interp_from = 200 ) assert_array_almost_equal ( dpss , dpss_ni ) assert_array_almost_equal ( eigs , eigs_ni )
test computation of dpss windows .