⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 normdist_bivariate.cc

📁 Financial Recipes
💻 CC
字号:
// Numerical approximation to the bivariate normal distribution, //  as described e.g. in Hulls book#include <math.h>#include "normdist.h"#ifndef PI #define PI 3.141592653589793238462643 #endif double n(double r, double mu, double sigma) {  // bivariate normal distribution function       double nv = 1.0/(sqrt(2.0*PI)*sigma);   double z=(r-mu)/sigma;   nv *= exp(-0.5*z*z);   return nv;};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -