home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // Math1.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
- // From: Math1.pas
- //----------------------------------------------------------------------------
- #ifndef Math1HPP
- #define Math1HPP
- //----------------------------------------------------------------------------
- #include <System.hpp>
- namespace Math1
- {
- //-- type declarations -------------------------------------------------------
- enum VarType { rnum, dnum, snum, inum, lnum, Bool, strg };
-
- class __declspec(delphiclass) TRandGen;
- class __declspec(pascalimplementation) TRandGen : public System::TObject
- {
- typedef System::TObject inherited;
-
- private:
- double FLowBorder;
- double FHighBorder;
- int FResolution;
- void *FDistVec;
- void __fastcall SetResolution(int p0);
- double __fastcall GetProbability(int p0);
- double __fastcall GetRandNum(void);
- double __fastcall GetLambda(int p0);
- void __fastcall SetProbability(int p0, double p1);
-
- public:
- __fastcall TRandGen(void);
- __fastcall virtual ~TRandGen(void);
- __property double HighBorder = {read=FHighBorder, write=FHighBorder};
- __property double Lambda[int ix] = {read=GetLambda};
- __property double LowBorder = {read=FLowBorder, write=FLowBorder};
- void __fastcall Normalize(void);
- void __fastcall NormalDistri(double p0, double p1);
- __property double Probability[int ix] = {read=GetProbability, write=SetProbability};
- __property double Random = {read=GetRandNum};
- int __fastcall IndexOfLambda(double p0);
- __property int Resolution = {read=FResolution, write=SetResolution, nodefault};
- void __fastcall UniformDistri(void);
- };
-
- //-- var, const, procedure ---------------------------------------------------
- extern Byte __fastcall DecodeBit(int p0);
- extern int __fastcall CountBits(Byte p0);
- extern System::AnsiString __fastcall strf(double p0, int p1, int p2);
- extern double __fastcall lg(double p0);
- extern double __fastcall ld(double p0);
- extern double __fastcall sinh(double p0);
- extern double __fastcall cosh(double p0);
- extern double __fastcall tgh(double p0);
- extern double __fastcall tg(double p0);
- extern double __fastcall cot(double p0);
- extern System::AnsiString __fastcall MakeEFormat(double p0, int p1, int p2);
- extern System::AnsiString __fastcall Decimal(long p0, Byte p1);
- extern long __fastcall ScanDecimal( System::AnsiString p0, int &p1);
- extern System::AnsiString __fastcall Hex(long p0, Byte p1);
- extern long __fastcall ScanHex( System::AnsiString p0, int &p1);
- extern System::AnsiString __fastcall Octal(long p0, Byte p1);
- extern long __fastcall ScanOctal( System::AnsiString p0, int &p1);
- extern System::AnsiString __fastcall Bin(long p0, Byte p1);
- extern long __fastcall ScanBin( System::AnsiString p0, int &p1);
- extern double __fastcall ScanFPNum( System::AnsiString p0, int &p1);
- extern int __fastcall SortIntoArray(void * p0, Word p1, VarType p2, void * p3, bool p4, bool p5);
- extern void __fastcall InsertIntoArray(void * p0, Word p1, VarType p2, void * p3, Word p4);
- extern void __fastcall SortArray(void * p0, Word p1, VarType p2, bool p3);
- extern double __fastcall Min(double p0, double p1);
- extern double __fastcall Max(double p0, double p1);
- extern int __fastcall Sign(double p0);
- extern bool __fastcall BRandom(double p0);
- extern double __fastcall GRandom(void);
- extern double __fastcall LongRand(long p0);
- extern bool __fastcall WithinBounds(double p0, double p1, double p2);
- extern long __fastcall IntPos(double p0);
- extern long __fastcall IntNeg(double p0);
- extern Word __fastcall GrayCode(Word p0);
-
- } /* namespace Math1 */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Math1;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // Math1
-