-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathECGSignal.h
49 lines (38 loc) · 919 Bytes
/
ECGSignal.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
#pragma once
#include <gsl/gsl_vector.h>
#include <gsl/gsl_vector_int.h>
#include <boost/shared_ptr.hpp>
/**
* @class Wrapped gsl_vector
*/
class WrappedVector
{
public:
WrappedVector (gsl_vector * _signal = NULL);
~WrappedVector ();
double get(size_t it);
void set(size_t it, double value);
gsl_vector* signal;
};
/**
* @class Wrapped gsl_vector_int
*/
class WrappedVectorInt
{
public:
WrappedVectorInt (gsl_vector_int * _signal = NULL);
~WrappedVectorInt ();
int get(size_t it);
void set(size_t it, int value);
gsl_vector_int* signal;
};
typedef boost::shared_ptr<WrappedVector> ECGSignalChannel;
typedef boost::shared_ptr<WrappedVector> OtherSignal;
typedef boost::shared_ptr<WrappedVectorInt> IntSignal;
struct ECGSignal
{
public:
void setSize(size_t n);
ECGSignalChannel channel_one;
ECGSignalChannel channel_two;
};