MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_psd_windowarray

Method test_psd_windowarray

lib/matplotlib/tests/test_mlab.py:632–642  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

630 atol=1e-08)
631
632 def test_psd_windowarray(self):
633 freqs = self.freqs_density
634 spec, fsp = mlab.psd(x=self.y,
635 NFFT=self.NFFT_density,
636 Fs=self.Fs,
637 noverlap=self.nover_density,
638 pad_to=self.pad_to_density,
639 sides=self.sides,
640 window=np.ones(self.NFFT_density_real))
641 assert_allclose(fsp, freqs, atol=1e-06)
642 assert spec.shape == freqs.shape
643
644 def test_psd_windowarray_scale_by_freq(self):
645 win = mlab.window_hanning(np.ones(self.NFFT_density_real))

Callers

nothing calls this directly

Calls 1

psdMethod · 0.80

Tested by

no test coverage detected