exp_rand.cpp
来自「Digital filter designer s handbook C++ c」· C++ 代码 · 共 17 行
CPP
17 行
//
// File = exp_rand.cpp
//
#include <math.h>
#include "uni_rand.h"
#include "exp_rand.h"
double ExponentialRandom(long *seed)
{
double g1,UA;
UA = DoubleUniformRandom(seed);
g1 = -log(UA);
return(g1);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?