-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Remove signatures that duplicate introspectable data. #13177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -669,15 +669,15 @@ def _single_spectrum_helper(x, mode, Fs=None, window=None, pad_to=None, | |
This should *NOT* be used to get zero padding, or the scaling of the | ||
result will be incorrect. Use *pad_to* for this instead. | ||
|
||
detrend : {'default', 'constant', 'mean', 'linear', 'none'} or callable | ||
detrend : {'none', 'mean', 'linear'} or callable, default 'none' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see #13177 (comment). |
||
The function applied to each segment before fft-ing, designed to | ||
remove the mean or linear trend. Unlike in MATLAB, where the | ||
*detrend* parameter is a vector, in Matplotlib is it a function. | ||
The :mod:`~matplotlib.mlab` module defines `.detrend_none`, | ||
`.detrend_mean`, and `.detrend_linear`, but you can use a custom | ||
function as well. You can also use a string to choose one of the | ||
functions. 'default', 'constant', and 'mean' call `.detrend_mean`. | ||
'linear' calls `.detrend_linear`. 'none' calls `.detrend_none`. | ||
functions: 'none' calls `.detrend_none`. 'mean' calls `.detrend_mean`. | ||
'linear' calls `.detrend_linear`. | ||
|
||
scale_by_freq : bool, optional | ||
Specifies whether the resulting density values should be scaled | ||
|
@@ -693,12 +693,6 @@ def psd(x, NFFT=None, Fs=None, detrend=None, window=None, | |
r""" | ||
Compute the power spectral density. | ||
|
||
Call signature:: | ||
|
||
psd(x, NFFT=256, Fs=2, detrend=mlab.detrend_none, | ||
window=mlab.window_hanning, noverlap=0, pad_to=None, | ||
sides='default', scale_by_freq=None) | ||
|
||
The power spectral density :math:`P_{xx}` by Welch's average | ||
periodogram method. The vector *x* is divided into *NFFT* length | ||
segments. Each segment is detrended by function *detrend* and | ||
|
@@ -756,12 +750,6 @@ def csd(x, y, NFFT=None, Fs=None, detrend=None, window=None, | |
""" | ||
Compute the cross-spectral density. | ||
|
||
Call signature:: | ||
|
||
csd(x, y, NFFT=256, Fs=2, detrend=mlab.detrend_none, | ||
window=mlab.window_hanning, noverlap=0, pad_to=None, | ||
sides='default', scale_by_freq=None) | ||
|
||
The cross spectral density :math:`P_{xy}` by Welch's average | ||
periodogram method. The vectors *x* and *y* are divided into | ||
*NFFT* length segments. Each segment is detrended by function | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.