Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: GPA.h
- Revision:
- 16:1e8a2a167eaf
- Parent:
- 8:d68e177e2571
- Child:
- 18:a715b1674b67
--- a/GPA.h Mon Apr 09 08:02:04 2018 +0000
+++ b/GPA.h Mon Apr 09 15:09:18 2018 +0000
@@ -5,13 +5,13 @@
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);
+ return update((double)inp, (double)out);
}
virtual ~GPA();
void reset();
- float update(float inp, float out);
+ float update(double inp, double out);
void printGPAfexcDes();
void printGPAmeasPara();
@@ -22,34 +22,34 @@
int NfexcDes;
int NperMin;
int NmeasMin;
- float Ts;
- float *fexcDes;
- float aAexcDes;
- float bAexcDes;
+ double Ts;
+ double *fexcDes;
+ double aAexcDes;
+ double bAexcDes;
- float fnyq;
- float pi2;
- float pi2Ts;
- float piDiv2;
+ double fnyq;
+ double pi2;
+ double pi2Ts;
+ double piDiv2;
int Nmeas;
int Nper;
- float fexc;
- float fexcPast;
+ double fexc;
+ double fexcPast;
int ii;
int jj;
- float scaleG;
- float cr;
- float ci;
- float *sU;
- float *sY;
- float sinarg;
+ double scaleG;
+ double cr;
+ double ci;
+ double *sU;
+ double *sY;
+ double sinarg;
int NmeasTotal;
- float Aexc;
- float pi2Tsfexc;
+ double Aexc;
+ double pi2Tsfexc;
- void fexcDesLogspace(float fMin, float fMax, int NfexcDes);
- void calcGPAmeasPara(float fexcDes_i);
+ void fexcDesLogspace(double fMin, double fMax, int NfexcDes);
+ void calcGPAmeasPara(double fexcDes_i);
void printLine();
};
\ No newline at end of file