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

Method test_psd

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

Source from the content-addressed store, hash-verified

464 np.sum(np.conjugate(spec1/2)*spec1/2).real)
465
466 def test_psd(self):
467 freqs = self.freqs_density
468 spec, fsp = mlab.psd(x=self.y,
469 NFFT=self.NFFT_density,
470 Fs=self.Fs,
471 noverlap=self.nover_density,
472 pad_to=self.pad_to_density,
473 sides=self.sides)
474 assert spec.shape == freqs.shape
475 self.check_freqs(spec, freqs, fsp, self.fstims)
476
477 @pytest.mark.parametrize(
478 'make_data, detrend',

Callers

nothing calls this directly

Calls 2

check_freqsMethod · 0.95
psdMethod · 0.80

Tested by

no test coverage detected