c/c++/c# 快速计算 Cumulative Normal Distribution 正态累积函数CDF
来源:互联网 发布:淘宝鹊桥软件 编辑:程序博客网 时间:2024/05/29 04:33
链接:
http://stackoverflow.com/questions/2328258/cumulative-normal-distribution-function-in-c-c
http://www.johndcook.com/blog/cpp_phi/
个人使用的是如下的代码:
static double CND(double d){ const double A1 = 0.31938153; const double A2 = -0.356563782; const double A3 = 1.781477937; const double A4 = -1.821255978; const double A5 = 1.330274429; const double RSQRT2PI = 0.39894228040143267793994605993438; double K = 1.0 / (1.0 + 0.2316419 * fabs(d)); double cnd = RSQRT2PI * exp(- 0.5 * d * d) * (K * (A1 + K * (A2 + K * (A3 + K * (A4 + K * A5))))); if (d > 0) cnd = 1.0 - cnd; return cnd;}
此函数版权属于NVIDIA
0 0
- c/c++/c# 快速计算 Cumulative Normal Distribution 正态累积函数CDF
- CDF 累积分布函数(cumulative distribution function)
- 一维数据可视化:累积分布函数(Cumulative Distribution Function)
- 高斯分布(Gaussian distribution)及其概率密度函数PDF和累积分布函数CDF
- normal distribution, lognormal distribution,正态随机数的生成
- 自用.....c,c++,C#编程经验累积
- Cumulative Relative Frequency Distribution
- 正态分布累积函数及其反函数 C/C++
- 统计学 分布篇 - Normal/Gaussian Distribution(正太分布)
- normal distribution
- Normal distribution & Gaussian distribution
- Normal Distribution(Gauss Distribution)
- 高斯分布概率密度函数(PDF)和累积分布函数(CDF)
- C知识点累积篇
- C/C++ 知识累积。
- 利用Python的Matplotlib库绘制CDF(累积分布函数)图像
- Normal distribution正态分布
- 正态分布(Normal Distribution)
- Parajumpers JULIET 6 a heart didn't be
- JavaSE_03面向对象1
- git 忽略不想上传的文件
- mvc后台解析json
- lua中的基本类型
- c/c++/c# 快速计算 Cumulative Normal Distribution 正态累积函数CDF
- 线程池
- PyMongo使用入门(四)
- 在命令行模式下与程序互动
- Android Studio分享项目到github上
- JavaSE_04面向对象2
- c#索引器
- JavaSE_05面向对象3
- Google Play Services Location:接收位置更新