-
Notifications
You must be signed in to change notification settings - Fork 38
/
ECGHRV2.h
86 lines (67 loc) · 1.87 KB
/
ECGHRV2.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#pragma once
#include "ECGSignal.h"
#include "ECGRs.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <gsl/gsl_interp.h>
#include <gsl/gsl_statistics.h>
/**
* @class Class for parameters created in HRV2 module
*/
class ECGHRV2
{
public:
ECGHRV2 (void);
~ECGHRV2 (void);
IntSignal GetHistogram_x () ;
IntSignal GetHistogram_y () ;
IntSignal GetPoincare_x () ;
IntSignal GetPoincare_y () ;
void SetHistogram_x (IntSignal histogram_x) ;
void SetHistogram_y (IntSignal histogram_y) ;
void SetPoincare_x (IntSignal poincare_x) ;
void SetPoincare_y (IntSignal poincare_y) ;
double GetSD1();
double GetSD2();
double GetTINN();
double GetM();
double GetN();
double GetHRVTriangularIndex();
double GetY();
double GetX();
double GetHistogramBinLength();
void SetSD1(double SD1);
void SetSD2(double SD2);
void SetTINN(double TINN);
void SetM(double M);
void SetN(double N);
void SetHRVTriangularIndex(double HRVTriangularIndex);
void SetY(double Y);
void SetX(double X);
void SetHistogramBinLength(double HistogramBinLength);
//SD parameters [ms]
double SD1;
double SD2;
private:
//TINN parameter [ms]
double TINN;
// begin point for base of a triangle approximating the NN (TINN) on histogram (x-axis)
double M;
// end point for base of a triangle approximating the NN (TINN) on histogram (x-axis)
double N;
//HRV__Triangular_Index parameter
double HRVTriangularIndex;
// maximum value on histogram (y-axis)
double Y;
// position of Y on x-axis
double X;
// length of histogram bin (1/128 second)
double HistogramBinLength; // [ms]
//data for plotting histogram
IntSignal histogram_x;
IntSignal histogram_y;
//data for plotting Poincare
IntSignal poincare_x;
IntSignal poincare_y;
};