/[projects]/dao/DelphiScanner/Components/tpsystools_4.04/examples/CBuilder/ExRndU.h
ViewVC logotype

Contents of /dao/DelphiScanner/Components/tpsystools_4.04/examples/CBuilder/ExRndU.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2671 - (show annotations) (download)
Tue Aug 25 18:15:15 2015 UTC (8 years, 8 months ago) by torben
File MIME type: text/plain
File size: 3605 byte(s)
Added tpsystools component
1 // ***** BEGIN LICENSE BLOCK *****
2 // * Version: MPL 1.1
3 // *
4 // * The contents of this file are subject to the Mozilla Public License Version
5 // * 1.1 (the "License"); you may not use this file except in compliance with
6 // * the License. You may obtain a copy of the License at
7 // * http://www.mozilla.org/MPL/
8 // *
9 // * Software distributed under the License is distributed on an "AS IS" basis,
10 // * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 // * for the specific language governing rights and limitations under the
12 // * License.
13 // *
14 // * The Original Code is TurboPower SysTools
15 // *
16 // * The Initial Developer of the Original Code is
17 // * TurboPower Software
18 // *
19 // * Portions created by the Initial Developer are Copyright (C) 1996-2002
20 // * the Initial Developer. All Rights Reserved.
21 // *
22 // * Contributor(s):
23 // *
24 // * ***** END LICENSE BLOCK *****
25 //---------------------------------------------------------------------------
26 #ifndef ExRndUH
27 #define ExRndUH
28 //---------------------------------------------------------------------------
29 #include <Classes.hpp>
30 #include <Controls.hpp>
31 #include <StdCtrls.hpp>
32 #include <Forms.hpp>
33 #include <ComCtrls.hpp>
34 #include <ExtCtrls.hpp>
35 #include <StRandom.hpp>
36 //---------------------------------------------------------------------------
37 typedef double __fastcall (__closure *TGetRandom)();
38
39 class TForm1 : public TForm
40 {
41 __published: // IDE-managed Components
42 TComboBox *cboDist;
43 TLabel *lblPrompt;
44 TLabel *lblParameters;
45 TLabel *lblParm1;
46 TLabel *lblParm2;
47 TEdit *edtParm1;
48 TEdit *edtParm2;
49 TButton *btnGenerate;
50 TImage *imgGraph;
51 TProgressBar *prgGenProgress;
52 TUpDown *updRight;
53 TUpDown *updLeft;
54 TLabel *lblLeft;
55 TLabel *lblRight;
56 TLabel *lblMaxY;
57 void __fastcall FormCreate(TObject *Sender);
58
59 void __fastcall cboDistChange(TObject *Sender);
60 void __fastcall updRightClick(TObject *Sender, TUDBtnType Button);
61 void __fastcall updLeftClick(TObject *Sender, TUDBtnType Button);
62 void __fastcall btnGenerateClick(TObject *Sender);
63 void __fastcall FormDestroy(TObject *Sender);
64 private: // User declarations
65 public: // User declarations
66 double GraphLeft;
67 double GraphRight;
68 double Value1;
69 double Value2;
70 TStRandomBase *PRNG;
71 TGetRandom GetRandom;
72
73 __fastcall TForm1(TComponent* Owner);
74
75 void __fastcall GenerateGraph(int aDistInx);
76
77 void __fastcall PrepForBeta();
78 void __fastcall PrepForCauchy();
79 void __fastcall PrepForChiSquared();
80 void __fastcall PrepForErlang();
81 void __fastcall PrepForExponential();
82 void __fastcall PrepForF();
83 void __fastcall PrepForGamma();
84 void __fastcall PrepForLogNormal();
85 void __fastcall PrepForNormal();
86 void __fastcall PrepForT();
87 void __fastcall PrepForUniform();
88 void __fastcall PrepForWeibull();
89
90 double __fastcall GetBeta();
91 double __fastcall GetCauchy();
92 double __fastcall GetChiSquared();
93 double __fastcall GetErlang();
94 double __fastcall GetExponential();
95 double __fastcall GetF();
96 double __fastcall GetGamma();
97 double __fastcall GetLogNormal();
98 double __fastcall GetNormal();
99 double __fastcall GetT();
100 double __fastcall GetUniform();
101 double __fastcall GetWeibull();
102
103 };
104 //---------------------------------------------------------------------------
105 extern PACKAGE TForm1 *Form1;
106 //---------------------------------------------------------------------------
107 #endif

  ViewVC Help
Powered by ViewVC 1.1.20