Skip to content

Commit 50f0e70

Browse files
committed
fix description of time constant estimation
1 parent d63aae0 commit 50f0e70

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

fooof/tests/utils/test_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_compute_knee_frequency():
1313

1414
def test_compute_time_constant():
1515

16-
assert compute_time_constant(100)
16+
assert compute_time_constant(10)
1717

1818
def test_compute_fwhm():
1919

fooof/utils/params.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ def compute_knee_frequency(knee, exponent):
2424
return knee ** (1./exponent)
2525

2626

27-
def compute_time_constant(knee):
28-
"""Compute the characteristic time constant based on the knee value.
27+
def compute_time_constant(knee_freq):
28+
"""Compute the characteristic time constant from the estimated knee frequency.
2929
3030
Parameters
3131
----------
32-
knee : float
33-
Knee parameter value.
32+
knee_freq : float
33+
Estimated knee frequency.
3434
3535
Returns
3636
-------
3737
float
38-
Calculated time constant value, tau, given the knee parameter.
38+
Calculated time constant value, tau, given the knee frequency.
3939
"""
4040

41-
return 1. / (2*np.pi*knee)
41+
return 1. / (2*np.pi*knee_freq)
4242

4343

4444
def compute_fwhm(std):

0 commit comments

Comments
 (0)