comparison Allan.h @ 135:77539f2597b1

Code cleanup
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Wed, 22 Jan 2014 12:29:38 +0100
parents bd28161e5ac2
children 7b9cf3d4346e
comparison
equal deleted inserted replaced
134:bd28161e5ac2 135:77539f2597b1
12 double LastMean[ALLAN_MAXPOINTSNUMBER] ; // the means of the last block of 2^n data for which averaging was completed 12 double LastMean[ALLAN_MAXPOINTSNUMBER] ; // the means of the last block of 2^n data for which averaging was completed
13 int BlocksNumber[ALLAN_MAXPOINTSNUMBER] ; // the number of blocks of 2^n data (averaged) used for computing AVAR(2^ntau) 13 int BlocksNumber[ALLAN_MAXPOINTSNUMBER] ; // the number of blocks of 2^n data (averaged) used for computing AVAR(2^ntau)
14 double CurrentAverage[ALLAN_MAXPOINTSNUMBER] ; // the sum of the last p data points retrieved (with p<2^2n). used for averaging as soon as p=2^n 14 double CurrentAverage[ALLAN_MAXPOINTSNUMBER] ; // the sum of the last p data points retrieved (with p<2^2n). used for averaging as soon as p=2^n
15 int NbCurrentAverage[ALLAN_MAXPOINTSNUMBER] ; // number of data point being summed in CurrentAverage (from 0 up to 2^n) 15 int NbCurrentAverage[ALLAN_MAXPOINTSNUMBER] ; // number of data point being summed in CurrentAverage (from 0 up to 2^n)
16 double Drift, Mean ; // the drift rate of the data (in Hz/s), and the mean value (in Hz) : only usefull for dedrifting... 16 double Drift, Mean ; // the drift rate of the data (in Hz/s), and the mean value (in Hz) : only usefull for dedrifting...
17 double normalization;
18 int autoscale;
17 int active; 19 int active;
18 int parent; 20 int parent;
19 int control; 21 int control;
20 } Allan_Data ; 22 } Allan_Data ;
21 23
22 24
23 // The functions of crypto class Allan 25 // The functions of crypto class Allan
24 26
25 int Allan_InitPanel(Allan_Data * Instance, const char * title, double Normalizer, int parent, int control) ; 27 void Allan_InitPanel(Allan_Data * Instance, const char * title, double Normalizer, int parent, int control) ;
26 int Allan_ClosePanel(Allan_Data * Instance) ; 28 void Allan_ClosePanel(Allan_Data * Instance) ;
27 int Allan_AddFrequency(Allan_Data * Instance, double Freq) ; 29 void Allan_AddFrequency(Allan_Data * Instance, double Freq) ;
28 30
29 int Allan_Reset(Allan_Data * Instance) ;
30 int Allan_AddFrequency(Allan_Data * Instance, double Freq);
31 int Allan_Display(Allan_Data * Instance, int ColorPt, int ColorErrorBar);
32 int Allan_DisplayErrorBars(Allan_Data * Instance, int color);