0.1.2 • Published 5 years ago

@avihimsa/heart-rate-variability-analysis v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

@avihimsa/heart-rate-variability-analysis

Common Heart rate variability (HRV) analysis metrics

NPM

Install

npm install --save @avihimsa/heart-rate-variability-analysis

Usage

Editable usage example at Repl.it

import { Time, Geometric } from "@avihimsa/heart-rate-variability-analysis"

// Array of RR intervals in milliseconds
const intervals = [	1100,1268,1184,1136,952,868,880,1032,1156,1308,]
/*
Time Domain:
Time.MHR - Mean Heart Rate
Time.MRR - Mean RR interval
Time.SDNN - Standard deviation of NN intervals
Time.PNN50 - Percentage of successive RR intervals that differ by more than 50 ms
Time.IRRR - Interquartile range of RR
Time.MADRR - Median of the absolute differences of RR intervals
Time.SDSD - Standard deviation of successive RR intervals
Time.RMsSD - Root mean square of successive RR interval differences
*/
const meanHeartRate = Time.MHR(intervals)
const pNN50 = Time.PNN50(intervals)
// ...

/*
Geometric Measures:
Geometric.TINN - Triangular interpolation of RR intervals
Geometric.RRtri - Triangular index of RR intervals
*/
const tinn = Geometric.TINN(intervals)
// ...

Documentation

View Documentation

Tests

yarn run test-unit

License

MIT © Luka Kakia

0.1.2

5 years ago

0.1.1

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago