-
Notifications
You must be signed in to change notification settings - Fork 3
/
Confidence.h
105 lines (98 loc) · 2.91 KB
/
Confidence.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
//---------------------------------------------------------------------------
#ifndef ConfidenceH
#define ConfidenceH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
#include <ComCtrls.hpp>
#include <cspin.h>
#include "GPXData.h"
#include "Spline.h"
//---------------------------------------------------------------------------
#define INTERVALS 100
#define BOTTOM_SPACE 20
class TConfidenceForm : public TForm
{
__published: // IDE-managed Components
TPanel *Panel1;
TPanel *Panel2;
TImage *m_pResDistr;
TLabel *Label1;
TEdit *m_pBase;
TLabel *Label2;
TEdit *m_pTrend;
TSpeedButton *m_pExchange;
TProgressBar *m_pProgress;
TLabel *Label3;
TGroupBox *GroupBox1;
TLabel *Label4;
TEdit *m_pMax;
TLabel *Label5;
TEdit *m_pAvg;
TLabel *Label6;
TEdit *m_pS;
TCSpinButton *UpperTh;
TEdit *m_pUpperThereshould;
TLabel *Label7;
TGroupBox *GroupBox2;
TLabel *Label8;
TButton *m_p2S;
TLabel *Label9;
TButton *m_p3S;
TLabel *Label10;
TLabel *Label11;
TCSpinEdit *m_pConfIntVal;
TLabel *Label12;
TButton *m_pConfidence;
TButton *m_pGo;
TButton *Button1;
TCheckBox *m_pReplace;
void __fastcall ExchangeClick(TObject *Sender);
void __fastcall UpperThereshouldKeyPress(TObject *Sender, char &Key);
void __fastcall UpperThDownClick(TObject *Sender);
void __fastcall UpperThUpClick(TObject *Sender);
void __fastcall S2Click(TObject *Sender);
void __fastcall S3Click(TObject *Sender);
void __fastcall ConfidenceClick(TObject *Sender);
void __fastcall GoClick(TObject *Sender);
void __fastcall UpperThereshouldExit(TObject *Sender);
private:
PGPXTrack __fastcall GetResultTrack();
bool __fastcall GetExchanged(); // User declarations
public: // User declarations
__fastcall TConfidenceForm(TComponent* Owner);
__fastcall ~TConfidenceForm();
void __fastcall SetTracks(PGPXTrack pBase, PGPXTrack pTrend);
__property PGPXTrack ResultTrack = { read=GetResultTrack };
__property bool Exchanged = { read=GetExchanged };
protected:
PGPXTrack m_pBaseTrack;
PGPXTrack m_pTrendTrack;
PGPXTrack m_pResultTrack;
double * m_pDeviations;
int m_nStartPoint;
int m_nEndPoint;
double m_dMaxDev;
double m_dAvgDev;
double m_dSigma;
double m_dUpTh;
bool m_bExhanged;
AkimaSpline * m_pSplineX;
AkimaSpline * m_pSplineY;
AkimaSpline * m_pSplineD;
Graphics::TBitmap * m_pBitmap;
int m_nPoints;
void __fastcall CalcStat();
AnsiString __fastcall RoundStr(double dValue);
void __fastcall DrawDistribution();
void __fastcall SetLimits();
void __fastcall HighestFirst(double *pArray, int n);
};
//---------------------------------------------------------------------------
extern PACKAGE TConfidenceForm *ConfidenceForm;
//---------------------------------------------------------------------------
#endif