We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 772c12f commit e98b9e0Copy full SHA for e98b9e0
1 file changed
src/data_analysis/heart_rate_variability/exploring_heart_rate_variability.clj
@@ -339,8 +339,9 @@
339
4 5 15))
340
;; Differentiate and square
341
(tc/add-column :sqdiff
342
- #(tcc/- (:filtered %)
343
- (tcc/shift (:filtered %) 1))))
+ #(tcc/sq
+ (tcc/- (:filtered %)
344
+ (tcc/shift (:filtered %) 1)))))
345
;; Find peaks with distance constraint (200 samples = ~0.29s)
346
peak-indices (find-peaks (:sqdiff pipeline)
347
{:distance 200})
0 commit comments