Skip to content

Commit 785b021

Browse files
V1.1
1 parent 8932676 commit 785b021

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

docs/source/quickstart.rst

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ Analysis requires the sampling rate for your data. If you know this *a priori*,
2929
3030
3131
**process(dataset, fs, windowsize=0.75, report_time=False,
32-
calc_freq=False, freq_method='welch', interp_clipping=True,
33-
interp_threshold=1020, hampel_correct=False, bpmmin=40, bpmmax=180)**
32+
calc_freq=False, freq_method='welch', interp_clipping=True,
33+
clipping_scale=True, interp_threshold=1020, hampel_correct=False,
34+
bpmmin=40, bpmmax=180, reject_segmentwise=False, measures = {},
35+
working_data = {})**
3436

3537
requires two arguments:
3638

@@ -43,9 +45,16 @@ Several optional arguments are available:
4345
* **report_time:** _optional_ whether to report total processing time of process() loop.
4446
* **calc_fft:** _optional_ whether to calculate frequency domain measures. Default = false Note: can cause slowdowns in some cases.
4547
* **calc_freq:** _optional_ whether to calculate frequency domain measures. Default = false Note: can cause slowdowns in some cases.
46-
* **interp_clipping**: if True, clipping parts of the signal are identified and the implied peak shape is interpolated. Default=True
48+
* **freq_method:** _optional_ method used to extract the frequency spectrum. Available: 'fft' (Fourier Analysis), 'periodogram', and 'welch' (Welch's method), Default = 'welch'
49+
* **interp_clipping:** if True, clipping parts of the signal are identified and the implied peak shape is interpolated. Default=True
50+
* **clipping_scale:** whether to scale the data priod to clipping detection. Can correct errors if signal amplitude has been affected after digitization (for example through filtering). Default = false
4751
* **interp_threshold**: the amplitude threshold beyond which will be checked for clipping. Recommended is to take this as the maximum value of the ADC with some margin for signal noise (default 1020, default ADC max 1024)
48-
52+
* **hampel_correct:** whether to reduce noisy segments using large median filter. Disabled by default due to computational complexity, and generally it is not necessary. Default = false.
53+
* **bpmmin:** minimum value to see as likely for BPM when fitting peaks. Default = 40
54+
* **bpmmax:** maximum value to see as likely for BPM when fitting peaks. Default = 180
55+
* **reject_segmentwise:** whether to reject segments with more than 30% rejected beats. By default looks at segments of 10 beats at a time. Default = false.
56+
* **measures:** measures dict in which results are stored. Custom dictionary can be passed, otherwise one is created and returned.
57+
* **working_data:** working_data dict in which results are stored. Custom dictionary can be passed, otherwise one is created and returned.
4958

5059
Two :code:`dict{}` objects are returned: one working data dict, and one containing all measures. Access as such:
5160

0 commit comments

Comments
 (0)