@@ -13,14 +13,14 @@ def get_band_peak_group(peak_params, band_def, n_fits):
1313 peak_params : 2d array
1414 Peak parameters, for a group fit, from FOOOF, with shape of [n_peaks, 4].
1515 band_def : [float, float]
16- Defines the band of interest, as [lower_frequency_bound, upper_frequency_bound].
16+ Defines the band of interest, as [lower_frequency_bound, upper_frequency_bound], in Hz .
1717 n_fits : int
1818 The number of model fits in the FOOOFGroup data.
1919
2020 Returns
2121 -------
2222 band_peaks : 2d array
23- Peak data. Each row is a peak, as [CF, Amp , BW].
23+ Peak data. Each row is a peak, as [CF, PW , BW].
2424
2525 Notes
2626 -----
@@ -59,12 +59,12 @@ def get_band_peak(peak_params, band_def, ret_one=True):
5959 Defines the band of interest, as [lower_frequency_bound, upper_frequency_bound].
6060 ret_one : bool, optional, default: True
6161 Whether to return single peak (if True) or all peaks within the range found (if False).
62- If True, returns the highest amplitude peak within the search range.
62+ If True, returns the highest peak within the search range.
6363
6464 Returns
6565 -------
6666 band_peaks : 1d or 2d array
67- Peak data. Each row is a peak, as [CF, Amp , BW]
67+ Peak data. Each row is a peak, as [CF, PW , BW]
6868 """
6969
7070 # Return nan array if empty input
@@ -82,17 +82,17 @@ def get_band_peak(peak_params, band_def, ret_one=True):
8282
8383 band_peaks = peak_params [peak_inds , :]
8484
85- # If results > 1 and ret_one, then we return the highest amplitude peak
85+ # If results > 1 and ret_one, then we return the highest peak
8686 # Call a sub-function to select highest power peak in band
8787 if n_peaks > 1 and ret_one :
88- band_peaks = get_highest_amp_peak (band_peaks )
88+ band_peaks = get_highest_peak (band_peaks )
8989
9090 # If results == 1, return peak - [cen, power, bw]
9191 return np .squeeze (band_peaks )
9292
9393
94- def get_highest_amp_peak (band_peaks ):
95- """Searches for the highest amplitude peak.
94+ def get_highest_peak (band_peaks ):
95+ """Searches for the highest peak.
9696
9797 Parameters
9898 ----------
@@ -102,7 +102,7 @@ def get_highest_amp_peak(band_peaks):
102102 Returns
103103 -------
104104 band_peaks : array
105- Peak data. Each row is a peak, as [CF, Amp , BW].
105+ Peak data. Each row is a peak, as [CF, PW , BW].
106106 """
107107
108108 # Catch & return NaN if empty
0 commit comments