-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignalprocessor.h
67 lines (51 loc) · 1.72 KB
/
signalprocessor.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
#ifndef SIGNALPROCESSOR_H
#define SIGNALPROCESSOR_H
#include <math.h>
#include <QVector>
#include <QThread>
class SignalProcessor
{
private:
//parameters for H generation (1.33)
double hStart; //tau(i-1) from (1.32)
double hSigma; //for quadratic equation (b)
double hNoiseParam; //a
double hSignalParam; //A
//parameters for F generation (1.33)
double fStart; //tau(i-1) from (1.32)
double fSigma; //for quadratic equation (b)
double fNoiseParam; //a
double fSignalParam; //A
public:
SignalProcessor();
void setFunctionHParameters(
double start,
double sigma,
double noiseParam,
double signalParam);
void setFunctionFParameters(
double start,
double sigma,
double noiseParam,
double signalParam);
double switchingRegimeFunctionH(double time);
double switchingRegimeFunctionF(double time);
double generateGammaValue(double t,double start,double sigma,double A,double a);
QVector <double> solveQuadraticEquation(double a,double b, double c);
QVector <double> switchingRegimeFilter(
QVector <double> signal,
QVector <QVector <double> > tauAndSigmas,
double discretizationStep,
double signalGenerationParam, //A
double noiseGenerationParam //a
);
double countIntegralH(
double lower,
double higher,
double integrationStep
);
//simple model
QVector <double> simpleFilter(QVector <double> signal, double signalSigma, double noiseSigma);
};
//============================================================================
#endif // SIGNALPROCESSOR_H