-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathHP.h
68 lines (63 loc) · 1.8 KB
/
HP.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
//---------------------------------------------------------------------------
#ifndef HODRECKPRESCOTT
#define HODRECKPRESCOTT
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <cspin.h>
#include <ComCtrls.hpp>
#include "GPXData.h"
//---------------------------------------------------------------------------
struct tagDataSet {
double *pX, *pY;
double *pA;
//double *pS;
double *pVx;
double *pVy;
};
struct tagHPData {
double *a, *b, *c;
double H1, H2, H3, H4, H5;
double HH1, HH2, HH3, HH4, HH5;
double Z;
double HB, HC;
};
typedef tagDataSet* PDataSet;
typedef tagHPData* PHPData;
class THPForm : public TForm
{
__published: // IDE-managed Components
TPanel *Panel1;
TLabel *Label1;
TGroupBox *GroupBox1;
TCheckBox *m_pCoordinates;
TCheckBox *m_pAltitude;
TCheckBox *m_pSpeed;
TButton *Button1;
TButton *Button2;
TProgressBar *ProgressBar;
TEdit *m_pLambda;
void __fastcall Button1Click(TObject *Sender);
void __fastcall OnLambdaKeyPress(TObject *Sender, char &Key);
private:
void __fastcall SetTrack(PGPXTrack value);
PGPXTrack __fastcall GetTrack(); // User declarations
public:
// User declarations
__fastcall THPForm(TComponent* Owner);
__fastcall ~THPForm();
__property PGPXTrack Track = { read=GetTrack, write=SetTrack };
protected:
double m_dLambda;
int m_nProgress;
PGPXTrack m_pTrack;
void __fastcall ProcessHP();
int __fastcall HPFilterProc(PDataSet pInput, int nobs, double lambda, PDataSet pOutput);
};
//---------------------------------------------------------------------------
extern PACKAGE THPForm *HPForm;
//---------------------------------------------------------------------------
#endif