def _test_unitary_power_spectrum_gaussian(
area=2.5, mean=5, std=1, samp_freq=10.24, samples=512):
+ "Test unitary_power_spectrum() on the gaussian function"
x = _numpy.zeros((samples,), dtype=_numpy.float)
mean = _numpy.float(mean)
for i in range(samples):
def _test_unitary_avg_power_spectrum_sin(
sin_freq=10, samp_freq=512, samples=1024, chunk_size=512, overlap=True,
window=window_hann):
+ "Test unitary_avg_power_spectrum() on the sine function"
x = _numpy.zeros((samples,), dtype=_numpy.float)
samp_freq = _numpy.float(samp_freq)
for i in range(samples):