gpa in double prescision

Dependencies:   mbed

Committer:
pmic
Date:
Tue Apr 10 12:25:03 2018 +0000
Revision:
28:c71b6856652e
Parent:
27:061dede7880c
correct new functinality

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pmic 8:3b98b6e1ead3 1 class GPA
pmic 8:3b98b6e1ead3 2 {
pmic 8:3b98b6e1ead3 3 public:
pmic 8:3b98b6e1ead3 4
pmic 9:4e6f3404d473 5 GPA(float fMin, float fMax, int NfexcDes, int NperMin, int NmeasMin, float Ts, float Aexc0, float Aexc1);
pmic 28:c71b6856652e 6 GPA(float f0, float f1, float *fexcDes, int NfexcDes, int NperMin, int NmeasMin, float Ts, float Aexc0, float Aexc1);
pmic 28:c71b6856652e 7 GPA(float *fexcDes, int NfexcDes, int NperMin, int NmeasMin, float Ts, float Aexc0, float Aexc1);
pmic 8:3b98b6e1ead3 8
pmic 8:3b98b6e1ead3 9 float operator()(float inp, float out) {
pmic 25:6f12f60821a3 10 return update((double)inp, (double)out);
pmic 8:3b98b6e1ead3 11 }
pmic 8:3b98b6e1ead3 12
pmic 8:3b98b6e1ead3 13 virtual ~GPA();
pmic 11:3b55cce7a2f3 14
pmic 8:3b98b6e1ead3 15 void reset();
pmic 25:6f12f60821a3 16 float update(double inp, double out);
pmic 11:3b55cce7a2f3 17
pmic 8:3b98b6e1ead3 18 void printGPAfexcDes();
pmic 8:3b98b6e1ead3 19 void printGPAmeasPara();
pmic 8:3b98b6e1ead3 20 void printGPAmeasTime();
pmic 28:c71b6856652e 21 void printNfexcDes();
pmic 8:3b98b6e1ead3 22
pmic 8:3b98b6e1ead3 23 private:
pmic 8:3b98b6e1ead3 24
pmic 28:c71b6856652e 25 int NfexcDes;
pmic 28:c71b6856652e 26 int NperMin;
pmic 28:c71b6856652e 27 int NmeasMin;
pmic 25:6f12f60821a3 28 double Ts;
pmic 25:6f12f60821a3 29 double *fexcDes;
pmic 25:6f12f60821a3 30 double aAexcDes;
pmic 25:6f12f60821a3 31 double bAexcDes;
pmic 11:3b55cce7a2f3 32
pmic 25:6f12f60821a3 33 double fnyq;
pmic 25:6f12f60821a3 34 double pi2;
pmic 25:6f12f60821a3 35 double pi2Ts;
pmic 25:6f12f60821a3 36 double piDiv2;
pmic 11:3b55cce7a2f3 37
pmic 28:c71b6856652e 38 int Nmeas;
pmic 28:c71b6856652e 39 int Nper;
pmic 25:6f12f60821a3 40 double fexc;
pmic 25:6f12f60821a3 41 double fexcPast;
pmic 28:c71b6856652e 42 int ii;
pmic 28:c71b6856652e 43 int jj;
pmic 25:6f12f60821a3 44 double scaleG;
pmic 25:6f12f60821a3 45 double cr;
pmic 25:6f12f60821a3 46 double ci;
pmic 25:6f12f60821a3 47 double *sU;
pmic 25:6f12f60821a3 48 double *sY;
pmic 25:6f12f60821a3 49 double sinarg;
pmic 28:c71b6856652e 50 int NmeasTotal;
pmic 25:6f12f60821a3 51 double Aexc;
pmic 25:6f12f60821a3 52 double pi2Tsfexc;
pmic 11:3b55cce7a2f3 53
pmic 28:c71b6856652e 54 void fexcDesLogspace(double fMin, double fMax, int NfexcDes);
pmic 28:c71b6856652e 55 void calcGPAmeasPara(double fexcDes_i);
pmic 28:c71b6856652e 56 void printLine();
pmic 8:3b98b6e1ead3 57
pmic 8:3b98b6e1ead3 58 };