-
Notifications
You must be signed in to change notification settings - Fork 2
/
tsanalitics.h
49 lines (44 loc) · 1.09 KB
/
tsanalitics.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
#ifndef TSANALITICS_H
#define TSANALITICS_H
#include <QObject>
#include <QVector>
#include <extremum.h>
struct exhalation {
int start, end, vol;
};
class tsanalitics : public QObject
{
Q_OBJECT
public:
explicit tsanalitics(QObject *parent = 0);
QVector<int> getMovingAverages(int Period);
int getMaxAvgs();
int getMinAvgs();
float getFrequency(); //!!!volume
float getAvgExpirationFlowRate();
int getTime();
int getAvgInspiratoryTime();
int getAvgExpiratoryTime();
int getPeriodTime();
int setupData(QVector<int> *row_d);\
void approximate();
int getBreathingVolume();
int getAvgExpiratorySpeed();
int getMaxExpiratorySpeed();
void append(int n);
void clear();
int getMaxsSum();
int getMinsSum();
int getMVL();
int getMax();
int getMin();
private:
int fabs(int a);
QVector<extremum> *ts_extremums;
QVector<extremum> *ts_vol_exts;
QVector<exhalation> *ts_exhls;
QVector<int> *ts_row_data;
signals:
public slots:
};
#endif // TSANALITICS_H