Skip to content

Commit 4df20b2

Browse files
V1.1
1 parent 785b021 commit 4df20b2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

heartpy/heartpy.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,15 +612,26 @@ def process(hrdata, sample_rate, windowsize=0.75, report_time=False,
612612
windowsize -- the window size to use, in seconds (calculated as windowsize * sample_rate)
613613
report_time -- whether to report total processing time of algorithm (default True)
614614
calc_freq -- whether to compute time-series measurements (default False)
615+
freq_method -- method used to extract the frequency spectrum. Available: 'fft' (Fourier Analysis),
616+
'periodogram', and 'welch' (Welch's method). (Default = 'welch')
615617
interp_clipping -- whether to detect and interpolate clipping segments of the signal
616618
(default True)
619+
clipping_scale -- whether to scale the data priod to clipping detection. Can correct errors
620+
if signal amplitude has been affected after digitization (for example through
621+
filtering). (Default False)
617622
intep_threshold -- threshold to use to detect clipping segments. Recommended to be a few
618623
datapoints below the sensor or ADC's maximum value (to account for
619624
slight data line noise). Default 1020, 4 below max of 1024 for 10-bit ADC
620625
hampel_correct -- whether to reduce noisy segments using large median filter. Disabled by
621626
default due to computational complexity, and generally it is not necessary
622627
bpmmin -- minimum value to see as likely for BPM when fitting peaks
623628
bpmmax -- maximum value to see as likely for BPM when fitting peaks
629+
reject_segmentwise -- whether to reject segments with more than 30% rejected beats.
630+
By default looks at segments of 10 beats at a time. (default False)
631+
measures -- measures dict in which results are stored. Custom dictionary can be passed,
632+
otherwise one is created and returned.
633+
working_data -- working_data dict in which results are stored. Custom dictionary can be passed,
634+
otherwise one is created and returned.
624635
'''
625636
t1 = time.clock()
626637

0 commit comments

Comments
 (0)