Skip to content

Commit a3fcdb5

Browse files
committed
Tweak docstrings
1 parent 5730629 commit a3fcdb5

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

pyriodicity/static/sazed.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,18 @@ def detect(
183183
Parameters
184184
----------
185185
data : array_like
186-
Input data array.
187-
window_func : str or float or tuple, optional
188-
Window function to apply to the data. See scipy.signal.get_window for
189-
details. Default is "boxcar".
190-
detrend_func : {"linear", "constant"} or None, optional
191-
Detrending function to apply to the data. If None, no detrending is
192-
performed. Default is "linear".
193-
method : {"optimal", "majority"}, optional
186+
Data to be investigated. Must be squeezable to 1-d.
187+
window_func : float, str, tuple, default = 'boxcar'
188+
Window function to be applied to the time series. Check
189+
``window`` parameter documentation for ``scipy.signal.get_window``
190+
function for more information on the accepted formats of this
191+
parameter.
192+
detrend_func : {'constant', 'linear'}, optional, default = 'linear'
193+
The kind of detrending to be applied on the signal. If None, no detrending
194+
is applied.
195+
method : {'optimal', 'majority'}, default = 'optimal'
194196
The ensemble method to use. 'optimal' uses correlation-based period
195-
selection, while 'majority' uses voting. Default is "optimal".
197+
selection, while 'majority' uses voting.
196198
197199
Returns
198200
-------
@@ -210,7 +212,7 @@ def detect(
210212
Raises
211213
------
212214
ValueError
213-
If method is not "optimal" or "majority".
215+
If method is neither 'optimal' nor 'majority'.
214216
"""
215217
if (
216218
np.any(np.isnan(data))

0 commit comments

Comments
 (0)