摘要: 转自:http://www.cnblogs.com/yeahgis/archive/2012/07/13/2590485.html高斯分布也称为正态分布(normal distribution)常用的成熟的生成高斯分布随机数序列的方法由Marsaglia和Bray在1964年提出,C++版本如下:#include <stdlib.h>#include <math.h>double gaussrand(){ static double V1, V2, S; static int phase = 0; double X; if ( phase == 0 ) { ... 阅读全文
posted @ 2012-11-26 20:43 cococo点点 阅读(562) 评论(0) 推荐(0)