Skip to content

Commit 0250302

Browse files
committed
hrv wip
1 parent 052eb68 commit 0250302

1 file changed

Lines changed: 37 additions & 14 deletions

File tree

src/data_analysis/heart_rate_variability/exploring_heart_rate_variability.clj

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -420,17 +420,40 @@
420420

421421
(delay
422422
(let [subject 5]
423-
(kind/fragment
424-
(-> (label-intervals subject)
425-
(tc/select-rows #(not= (:label %) :ignore))
426-
#_(tc/select-rows #(= (:label %) :meditation))
427-
(tc/rows :as-maps)
428-
(->> (mapcat (fn [{:keys [offset n label]}]
429-
[label
430-
(try (-> {:ppi-params {:subject-id subject
431-
:row-interval [offset (+ offset n)]}
432-
:measures-params {:sampling-rate 10
433-
:window-size-in-sec 120}}
434-
WESAD-spectrograms
435-
plot-with-measures)
436-
(catch Exception e 'unavailable))])))))))
423+
(-> (label-intervals subject)
424+
(tc/select-rows #(not= (:label %) :ignore))
425+
#_(tc/select-rows #(= (:label %) :meditation))
426+
(tc/rows :as-maps)
427+
(->> (mapcat (fn [{:keys [offset n label]}]
428+
[label
429+
(try (-> {:ppi-params {:subject-id subject
430+
:row-interval [offset (+ offset n)]}
431+
:measures-params {:sampling-rate 10
432+
:window-size-in-sec 120}}
433+
WESAD-spectrograms
434+
plot-with-measures)
435+
(catch Exception e 'unavailable))]))))))
436+
437+
438+
439+
440+
441+
442+
;; ## Conclusion
443+
444+
;; - measures are tricky
445+
;; - domain knowledge matters
446+
;; - workflow matters
447+
;; - visualization matters
448+
449+
450+
451+
452+
453+
454+
455+
456+
457+
458+
459+

0 commit comments

Comments
 (0)