Tests whether the computation of the normalizing factor does the correct
job (i.e. actually normalizes the signal in l1 or l2)
rng = check_random_state(random_state)
size_signal = [2**j for j in range(5, 10)]
norm_type = ["l1", "l2"]
for N in size_signal:
x = rng.randn(N) + 1j * rng.randn(N)
After Change
Tests whether the computation of the normalizing factor does the correct
job (i.e. actually normalizes the signal in l1 or l2)
rng = np.random.RandomState(random_state)
size_signal = [2**j for j in range(5, 10)]
norm_type = ["l1", "l2"]
for N in size_signal:
x = rng.randn(N) + 1j * rng.randn(N)