home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'Math1.pas' rev: 3.00
-
- #ifndef Math1HPP
- #define Math1HPP
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Math1
- {
- //-- type declarations -------------------------------------------------------
- typedef void __fastcall (*FeedBackProcType)(int StateCnt);
-
- enum VarType { rnum, dnum, snum, inum, lnum, Bool, strg };
-
- class DELPHICLASS TRandGen;
- class PASCALIMPLEMENTATION TRandGen : public System::TObject
- {
- typedef System::TObject inherited;
-
- private:
- double FLowBorder;
- double FHighBorder;
- int FResolution;
- void *FDistVec;
- void __fastcall SetResolution(int res);
- double __fastcall GetProbability(int Idx);
- double __fastcall GetRandNum(void);
- double __fastcall GetLambda(int ix);
- void __fastcall SetProbability(int Idx, double Value);
-
- 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 m, double s);
- __property double Probability[int ix] = {read=GetProbability, write=SetProbability};
- __property double Random = {read=GetRandNum};
- int __fastcall IndexOfLambda(double Lambda);
- __property int Resolution = {read=FResolution, write=SetResolution, nodefault};
- void __fastcall UniformDistri(void);
- void __fastcall WeibullDistri(double alpha, double beta);
- };
-
- //-- var, const, procedure ---------------------------------------------------
- extern PACKAGE Extended e;
- extern PACKAGE Extended etom1;
- extern PACKAGE Extended lg2;
- extern PACKAGE Extended lg5;
- extern PACKAGE Extended lge;
- extern PACKAGE Extended lgPi;
- extern PACKAGE Extended ln10;
- extern PACKAGE Extended ln2;
- extern PACKAGE Extended lnPi;
- extern PACKAGE Extended PiH;
- extern PACKAGE Extended PiSqr;
- extern PACKAGE Extended Pitom1;
- extern PACKAGE Extended sqrt2;
- extern PACKAGE Extended sqrt2pi;
- extern PACKAGE Extended sqrt2pitom1;
- extern PACKAGE Extended GoldenR;
- extern PACKAGE Extended MinReal;
- extern PACKAGE Extended MaxReal;
- extern PACKAGE Extended MinSingle;
- extern PACKAGE Extended MaxSingle;
- extern PACKAGE Extended MinDouble;
- extern PACKAGE Extended MaxDouble;
- extern PACKAGE Extended MinExtended;
- extern PACKAGE Extended MaxExtended;
- extern PACKAGE int ProcStat;
- extern PACKAGE FeedBackProcType MathFeedBackProc;
- extern PACKAGE void __fastcall CalcScalePars(int Ntick, double LowVal, double HighVal, double &LowTick
- , double &Distance, Word &Divi);
- extern PACKAGE int __fastcall ScanBin(System::AnsiString Instring, int &Idx);
- extern PACKAGE int __fastcall ScanHex(System::AnsiString Instring, int &Idx);
- extern PACKAGE int __fastcall ScanOctal(System::AnsiString Instring, int &Idx);
- extern PACKAGE int __fastcall ScanDecimal(System::AnsiString Instring, int &Idx);
- extern PACKAGE double __fastcall ScanFPNum(System::AnsiString Instring, bool AllowExp, int DecPChar,
- int &Idx);
- extern PACKAGE System::AnsiString __fastcall strf(double r, int FieldWidth, int DecP);
- extern PACKAGE void __fastcall ExChange(void *x, void *y, Word size);
- extern PACKAGE Byte __fastcall DecodeBit(int ix);
- extern PACKAGE int __fastcall CountBits(Byte InByte);
- extern PACKAGE double __fastcall lg(double x);
- extern PACKAGE double __fastcall ld(double x);
- extern PACKAGE double __fastcall sinh(double x);
- extern PACKAGE double __fastcall cosh(double x);
- extern PACKAGE double __fastcall tgh(double x);
- extern PACKAGE double __fastcall tg(double x);
- extern PACKAGE double __fastcall cot(double x);
- extern PACKAGE System::AnsiString __fastcall MakeEFormat(double x, int w, int d);
- extern PACKAGE System::AnsiString __fastcall Decimal(int innum, Byte places);
- extern PACKAGE System::AnsiString __fastcall Hex(int innum, Byte places);
- extern PACKAGE System::AnsiString __fastcall Octal(int innum, Byte places);
- extern PACKAGE System::AnsiString __fastcall Bin(int innum, Byte places);
- extern PACKAGE int __fastcall SortIntoArray(void * ArrayAdr, int LengArray, VarType TypArray, void *
- value, bool Ascending, bool Dublicates);
- extern PACKAGE void __fastcall InsertIntoArray(void * ArrayAdr, int LengArray, VarType TypArray, void *
- value, int index);
- extern PACKAGE void __fastcall SortArray(void * ArrayAdr, int LengArray, VarType TypArray, bool Ascending
- );
- extern PACKAGE double __fastcall Min(double a, double b);
- extern PACKAGE double __fastcall Max(double a, double b);
- extern PACKAGE int __fastcall Sign(double a);
- extern PACKAGE bool __fastcall BRandom(double p);
- extern PACKAGE double __fastcall GRandom(void);
- extern PACKAGE double __fastcall LongRand(int seed);
- extern PACKAGE bool __fastcall WithinBounds(double Inval, double Boundary1, double Boundary2);
- extern PACKAGE int __fastcall IntPos(double InNum);
- extern PACKAGE int __fastcall IntNeg(double InNum);
- extern PACKAGE Word __fastcall GrayCode(Word InNum);
-
- } /* namespace Math1 */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Math1;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // Math1
-