Библиотека Probability содержит функции для вычисления основных вероятностных интегралов и функций, обратных к ним. Библиотека представляет собой подмножество математической библиотеки Cephes от Стивена Мошера.
Содержимое архива Experts.zip:
- Experts\Include\Probability.mqh – Заголовочный файл MQL4;
- Experts\Libraries\Probability.dll – Библиотека DLL;
- Experts\Scripts\TEST_Probability.mg4 – Пример использования библиотеки с комментариями, приводится сравнение с аналогичными функциями Excell.
Содержимое архива Make.zip
- Маке\Make.bat – Исполняемый файл для компиляции и сборки библиотеки Probability.dll в среде Microsoft Visual Studio 2005;
- Make\Source\*.* - исходные коды библиотеки Cephes v2.8 (Double precision) на “C”;
- Make\Bin\*.* - откомпилированные и собранные файлы Dll, Lib, Exp (пустой).
Список функций, включенных в Probability.dll:
- double bdtr(int k, int n, double p); - Binomial distribution;
- double bdtrc(int k, int n, double p); - Complemented binomial distribution;
- double bdtri(int k, int n, double y); - Inverse binomial distribution;
- double btdtr(double a, double b,double x); - Beta distribution;
- double chdtr(double df, double x); - Chi-square distribution;
- double chdtrc(double df, double x); - Complemented Chi-square distribution;
- double chdtri(double df, double y); - Inverse of complemented Chi-square distribution;
- double fdtr(int df1, int df2, double x); - F distribution;
- double fdtrc(int df1, int df2, double x); - Complemented F distribution;
- double fdtri(int df1, int df2, double p); - Inverse of complemented F distribution;
- double gdtr(double a, double b, double x); - Gamma distribution function;
- double gdtrc(double a, double b, double x); - Complemented gamma distribution function;
- double nbdtr(int k, int n, double p); - Negative binomial distribution;
- double nbdtrc(int k, int n, double p); - Complemented negative binomial distribution;
- double nbdtri(int k, int n, double y); - Functional inverse of negative binomial distribution;
- double ndtr(double x); - Normal distribution function;
- double ndtri(double y); - Inverse of Normal distribution function;
- double pdtr(int k, double m); - Poisson distribution;
- double pdtrc(int k, double m); - Complemented poisson distribution;
- double pdtri(int k, double y); - Inverse Poisson distribution;
- double stdtr(int k, double t); - Student's t distribution;
- double stdtri(int k, double p); - Functional inverse of Student's t distribution.