data_operations.scipy_12_welch#
Back to Module page
Summary#
Cheating to copy Scipy 1.2’s Welch method, to access the average attribute Note: Assumes fs is an integer in converting times to mask indices
Signature#
def scipy_12_welch(x, y = None, fs = 1.0, window = 'hann', nperseg = None, noverlap = None, nfft = None, detrend = 'constant', return_onesided = True, scaling = 'density', axis = -1, average = 'mean', mask = None, line_id_ver = 'old')
Name |
Type |
Default |
Description |
|---|---|---|---|
|
|||
|
None |
||
|
1.0 |
||
|
‘hann’ |
||
|
None |
||
|
None |
||
|
None |
||
|
‘constant’ |
||
|
True |
||
|
‘density’ |
||
|
-1 |
||
|
‘mean’ |
||
|
None |
||
|
‘old’ |
Flag to use old or new version of line-identification code |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
|
Docstring#
Cheating to copy Scipy 1.2's Welch method, to access the average
attribute
Note: Assumes fs is an integer in converting times to mask indices
:param line_id_ver:
Flag to use old or new version of line-identification code
:return: 1. Array with frequency axis (Hz)
2. Array with one-sided PSD (Hz^-1)
3. Crude line mask with lines zeroed
4. Loud line mask with lines zeroed