Skip to content

Commit 0bb558d

Browse files
committed
DOC: note that threshold is optional
1 parent 6d42c8c commit 0bb558d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fooof/analysis/periodic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_band_peak_fm(fm, band, select_highest=True, threshold=None, thresh_param
2121
select_highest : bool, optional, default: True
2222
Whether to return single peak (if True) or all peaks within the range found (if False).
2323
If True, returns the highest power peak within the search range.
24-
threshold : float
24+
threshold : float, optional
2525
A minimum threshold value to apply.
2626
thresh_param : {'PW', 'BW'}
2727
Which parameter to threshold on. 'PW' is power and 'BW' is bandwidth.
@@ -58,7 +58,7 @@ def get_band_peak_fg(fg, band, threshold=None, thresh_param='PW', attribute='pea
5858
band : tuple of (float, float)
5959
Frequency range for the band of interest.
6060
Defined as: (lower_frequency_bound, upper_frequency_bound).
61-
threshold : float
61+
threshold : float, optional
6262
A minimum threshold value to apply.
6363
thresh_param : {'PW', 'BW'}
6464
Which parameter to threshold on. 'PW' is power and 'BW' is bandwidth.
@@ -113,7 +113,7 @@ def get_band_peak_group(peak_params, band, n_fits, threshold=None, thresh_param=
113113
Defined as: (lower_frequency_bound, upper_frequency_bound).
114114
n_fits : int
115115
The number of model fits in the FOOOFGroup data.
116-
threshold : float
116+
threshold : float, optional
117117
A minimum threshold value to apply.
118118
thresh_param : {'PW', 'BW'}
119119
Which parameter to threshold on. 'PW' is power and 'BW' is bandwidth.
@@ -157,7 +157,7 @@ def get_band_peak(peak_params, band, select_highest=True, threshold=None, thresh
157157
select_highest : bool, optional, default: True
158158
Whether to return single peak (if True) or all peaks within the range found (if False).
159159
If True, returns the highest peak within the search range.
160-
threshold : float
160+
threshold : float, optional
161161
A minimum threshold value to apply.
162162
thresh_param : {'PW', 'BW'}
163163
Which parameter to threshold on. 'PW' is power and 'BW' is bandwidth.

0 commit comments

Comments
 (0)