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

Method test_psd_csd_equal

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

Source from the content-addressed store, hash-verified

725 mlab.specgram(x=self.y, NFFT=len(self.y), Fs=self.Fs)
726
727 def test_psd_csd_equal(self):
728 Pxx, freqsxx = mlab.psd(x=self.y,
729 NFFT=self.NFFT_density,
730 Fs=self.Fs,
731 noverlap=self.nover_density,
732 pad_to=self.pad_to_density,
733 sides=self.sides)
734 Pxy, freqsxy = mlab.csd(x=self.y, y=self.y,
735 NFFT=self.NFFT_density,
736 Fs=self.Fs,
737 noverlap=self.nover_density,
738 pad_to=self.pad_to_density,
739 sides=self.sides)
740 assert_array_almost_equal_nulp(Pxx, Pxy)
741 assert_array_equal(freqsxx, freqsxy)
742
743 @pytest.mark.parametrize("mode", ["default", "psd"])
744 def test_specgram_auto_default_psd_equal(self, mode):

Callers

nothing calls this directly

Calls 2

psdMethod · 0.80
csdMethod · 0.80

Tested by

no test coverage detected