Skip to content

Commit

Permalink
Tweak docstrings ever so slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandergaba committed Nov 14, 2024
1 parent a31e78c commit 5499b78
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pyriodicity/detectors/robustperiod.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ def detect(
Data to be investigated. Must be squeezable to 1-d.
lamb : float, str, default = 'ravn-uhlig'
The Hodrick-Prescott filter smoothing parameter. Possible values are
either a float value or one of the following string values that represent
an automatic lambda parameter selection method: 'hodrick-prescott' [1]_ or
'ravn-uhlig' [2]_. In the latter case, ``x`` must contain ``index``
attribute representing data point timestamps.
either a float value or one of the following string values:
['hodrick-prescott', 'ravn-uhlig'] that represent Hodrick and Prescott [1]_
and Ravn and Uhlig [2]_ automatic lambda parameter selection methods,
respectively. In the latter case, ``x`` must contain ``index`` attribute
representing data point timestamps.
c : float, default = 2
TODO explanation
Expand Down Expand Up @@ -96,10 +97,11 @@ def _preprocess(x: ArrayLike, lamb: Union[str, float], c: float) -> NDArray:
Data to be preprocessed. Must be squeezable to 1-d.
lamb : float, str
The Hodrick-Prescott filter smoothing parameter. Possible values are
either a float value or one of the following string values that represent
an automatic lambda parameter selection method: 'hodrick-prescott' or
'ravn-uhlig'. In the latter case, ``x`` must contain ``index``
attribute representing data point timestamps.
either a float value or one of the following string values:
['hodrick-prescott', 'ravn-uhlig'] that represent Hodrick and Prescott
and Ravn and Uhlig automatic lambda parameter selection methods,
respectively. In the latter case, ``x`` must contain ``index`` attribute
representing data point timestamps.
c : float, default = 2
TODO explanation
Expand Down

0 comments on commit 5499b78

Please sign in to comment.