-
Notifications
You must be signed in to change notification settings - Fork 38
/
ECGWaves.cpp
51 lines (38 loc) · 1.03 KB
/
ECGWaves.cpp
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
#include "ECGWaves.h"
ECGWaves::ECGWaves (void)
{}
ECGWaves::~ECGWaves (void)
{}
void ECGWaves::setQrsOnset(IntSignal QRS_onset)
{
this->QRS_onset = QRS_onset;
}
void ECGWaves::setQrsEnd(IntSignal QRS_end)
{
this->QRS_end = QRS_end;
}
void ECGWaves::setTend(IntSignal T_end)
{
this->T_end = T_end;
}
void ECGWaves::setPonset(IntSignal P_onset)
{
this->P_onset = P_onset;
}
void ECGWaves::setPend(IntSignal P_end)
{
this->P_end = P_end;
}
void ECGWaves::setSize(size_t n)
{
this->QRS_onset = IntSignal(new WrappedVectorInt);
this->QRS_onset->signal = gsl_vector_int_alloc(n);
this->QRS_end = IntSignal(new WrappedVectorInt);
this->QRS_end->signal = gsl_vector_int_alloc(n);
this->T_end = IntSignal(new WrappedVectorInt);
this->T_end->signal = gsl_vector_int_alloc(n);
this->P_onset = IntSignal(new WrappedVectorInt);
this->P_onset->signal = gsl_vector_int_alloc(n);
this->P_end = IntSignal(new WrappedVectorInt);
this->P_end->signal = gsl_vector_int_alloc(n);
}