Ruprecht Altenburger
/
RT2_P3_students_G4
Template for group 4
Fork of RT2_P3_students by
Diff: GPA.h
- Revision:
- 0:78ca29b4c49e
- Child:
- 1:a30512c3ac73
diff -r 000000000000 -r 78ca29b4c49e GPA.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GPA.h Tue Apr 03 08:47:41 2018 +0000 @@ -0,0 +1,55 @@ +class GPA +{ +public: + + GPA(float fMin, float fMax, int NfexcDes, int NperMin, int NmeasMin, float Ts, float Aexc0, float Aexc1); + + float operator()(float inp, float out) { + return update(inp, out); + } + + virtual ~GPA(); + + void reset(); + float update(float inp, float out); + + void printGPAfexcDes(); + void printGPAmeasPara(); + void printGPAmeasTime(); + +private: + + int NfexcDes; + int NperMin; + int NmeasMin; + float Ts; + float *fexcDes; + float aAexcDes; + float bAexcDes; + + float fnyq; + float pi2; + float pi2Ts; + float piDiv2; + + int Nmeas; + int Nper; + float fexc; + float fexcPast; + int ii; + int jj; + float scaleG; + float cr; + float ci; + float *sU; + float *sY; + float sinarg; + int NmeasTotal; + float Aexc; + float pi2Tsfexc; + + void fexcDesLogspace(float fMin, float fMax, int NfexcDes); + void calcGPAmeasPara(float fexcDes_i); + void printLine(); + +}; \ No newline at end of file