-
Notifications
You must be signed in to change notification settings - Fork 38
/
GeometricAnalysis.h
97 lines (73 loc) · 1.74 KB
/
GeometricAnalysis.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
87
88
89
90
91
92
93
94
95
96
#pragma once
#include "ModulesInterfaces.h"
#include "ModulesMethods.h"
#include "ECGSignal.h"
#include "ECGRs.h"
#include "ECGHRV2.h"
#include "ECGChannelInfo.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <gsl/gsl_interp.h>
#include <gsl/gsl_statistics.h>
//#define DEVELOPMENT
/**
* @class Class for parameters created in HRV2 module
*/
class GeometricAnalysis : public HRV2Module
{
public:
GeometricAnalysis (void);
~GeometricAnalysis (void);
void runModule( const ECGInfo &, const ECGRs &, ECGHRV2 &);
void setParams(ParametersTypes &);
void PrepareRRSignal();
void MakeHistogramAndGeometricalParams();
void MakePoincareAndSDParams();
void SetHRV2Params(ECGHRV2 &hrv2);
ECGRs MakeRRsignal();
private:
//SD parameters [ms]
double SD1;
double SD2;
//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 [ms]
IntSignal poincare_x;
IntSignal poincare_y;
/**
* Filtered signal from 'ECG_BASALINE'
*/
ECGSignal signal;
/**
* R peaks vector
*/
ECGRs rpeaks;
/**
* HRV2 output
*/
//ECGHRV2 hrv2;
/**
* RR intervals vector
*/
OtherSignal RR_intervals;
/**
* RR SamplingInterval [Hz]
*/
double SamplingInterval;
};