pyActigraphy.analysis.FLM.smooth¶
- FLM.smooth(raw, binarize=False, method='scott', verbose=False)[source]¶
Smooth the actigraphy data using a gaussian kernel.
Wrapper for the scipy.ndimage.gaussian_filter1d function.
- Parameters
raw (instance of BaseRaw or its child classes) – Raw measurements to be smoothed.
binarize (bool.) – If True, the data are binarized (i.e 0 or 1). Default is False.
method (str, float.) – Method to calculate the width of the gaussian kernel. Available methods are scott, silverman. Method can be a scalar value too. Default is scott.
verbose (bool.) – If True, print the kernel size used to smooth the data. Default is False.
- Returns
y_est – Returns the smoothed form of the actigraphy data.
- Return type
ndarray