|
6 | 6 | ################################################################################################### |
7 | 7 |
|
8 | 8 | FOOOFSettings = namedtuple('FOOOFSettings', ['peak_width_limits', 'max_n_peaks', |
9 | | - 'min_peak_amplitude', 'peak_threshold', |
| 9 | + 'min_peak_height', 'peak_threshold', |
10 | 10 | 'aperiodic_mode']) |
11 | 11 | FOOOFSettings.__doc__ = """\ |
12 | 12 | The user defined settings for a FOOOF object. |
|
17 | 17 | Limits on possible peak width, as (lower_bound, upper_bound). |
18 | 18 | max_n_peaks : int, optional, default: inf |
19 | 19 | Maximum number of gaussians to be fit in a single spectrum. |
20 | | -min_peak_amplitude : float, optional, default: 0 |
21 | | - Minimum amplitude threshold for a peak to be modeled. |
| 20 | +min_peak_height : float, optional, default: 0 |
| 21 | + Absolute threshold for detecting peaks, in units of the input data. |
22 | 22 | peak_threshold : float, optional, default: 2.0 |
23 | | - Threshold for detecting peaks, units of standard deviation. |
| 23 | + Relative threshold for detecting peaks, in units of standard deviation of the input data. |
24 | 24 | aperiodic_mode : {'fixed', 'knee'} |
25 | 25 | Which approach to take for fitting the aperiodic component. |
26 | 26 | """ |
|
51 | 51 | Parameters that define the aperiodic fit. As [Offset, (Knee), Exponent]. |
52 | 52 | The knee parameter is only included if aperiodic is fit with knee. |
53 | 53 | peak_params : 2d array |
54 | | - Fitted parameter values for the peaks. Each row is a peak, as [CF, Amp, BW]. |
| 54 | + Fitted parameter values for the peaks. Each row is a peak, as [CF, PW, BW]. |
55 | 55 | r_squared : float |
56 | 56 | R-squared of the fit between the input power spectrum and the full model fit. |
57 | 57 | error : float |
58 | 58 | Root mean squared error of the full model fit. |
59 | 59 | gaussian_params : 2d array |
60 | | - Parameters that define the gaussian fit(s). Each row is a gaussian, as [mean, amp, std]. |
| 60 | + Parameters that define the gaussian fit(s). |
| 61 | + Each row is a gaussian, as [mean, height, standard deviation]. |
61 | 62 | """ |
62 | 63 |
|
63 | 64 |
|
|
70 | 71 | ---------- |
71 | 72 | aperiodic_params : list, len 2 or 3 |
72 | 73 | Parameters that define the aperiodic fit. As [Offset, (Knee), Exponent]. |
73 | | - The knee parameter is only included if aperiodic is fit with knee. Otherwise, length is 2. |
| 74 | + The knee parameter is only included if aperiodic is fit with knee. Otherwise, length is 2. |
74 | 75 | gaussian_params : list or list of lists |
75 | | - Fitted parameter values for the peaks. Each list is a peak, as [CF, Amp, BW]. |
| 76 | + Fitted parameter values for the peaks. |
| 77 | + Each list is a peak, with a gaussian definition of [mean, height, standard deviation]. |
76 | 78 | nlv : float |
77 | 79 | Noise level added to the generated power spectrum. |
78 | 80 | """ |
0 commit comments