-
程序只产生均值为0,方差为1的随机数,要产生均值为E,方差为D的随机数,只要随机数*D+E就可以了。高斯随机数程序还是带参数的,参数是用来描述正态分布的一个浮点...
程序只产生均值为0,方差为1的随机数,要产生均值为E,方差为D的随机数,只要随机数*D+E就可以了。高斯随机数程序还是带参数的,参数是用来描述正态分布的一个浮点数表。在执行程序时,先生成这个表(只做一次),而后就可以任意多次地执行高斯随机数产生程序了。使用C是为了保证通用性,如果有人觉得麻烦,可以用C++做个类,把这些东西都封装进去。另外,如果有人有兴趣,也可以把它修改成任意形式分布的连续随机数产生程序,修改非常简单,这里就不提示了。-procedures have only mean of 0 and variance for a random number to produce the mean E, D variance for the random number, as long as a few random E* D on it. Gaussian random process parameters or with the parameter is used to describe a normal distribution of the float table. In the implementation process, Mr. into the table (one-off), and you can repeatedly arbitrary implementation Gaussian random number generator proceedings. The use of C is to ensure commonality, if someone finds trouble, can be used to be a Class C, all these things into account Packaging. Also, if someone is interested, can you change the form of arbitrary distribution of continuous random number generator procedure is very simple changes, I will not be sacrificed as a result.
- 2023-08-17 15:20:03下载
- 积分:1
-
acm大赛的试题,希望对狂爱编程的新手有帮助
acm大赛的试题,希望对狂爱编程的新手有帮助-acm contest questions, in the hope that Cactus have to help novice programmers
- 2022-10-24 06:45:03下载
- 积分:1
-
gSpan 算法
一种经典的频繁子树挖掘算法,里面包含一个执行文件gSpan和两个graph实验数据文件,还有一个使用说明文件readme. 运行环境是Linux。 首先解压文件gSpan6.tar.gz,然后进入加压后文件,按照说明运行命令即可
- 2022-03-12 19:03:41下载
- 积分:1
-
c/c++ 二叉树遍历先序中序 后序层次遍历算法
c/c++ 二叉树遍历先序中序 后序层次遍历算法 包括递归和对应的非递归算法,建立二叉搜索树,层次输出二叉搜索树。
- 2022-05-30 05:45:26下载
- 积分:1
-
this is great book for learning elecromagnetic simulation using FDTD
this great book for learning elecromagnetic simulation using FDTD-this is great book for learning elecromagnetic simulation using FDTD
- 2022-01-31 10:37:14下载
- 积分:1
-
bp网络分类验证
数据来源机器学习数据集,数据经过归一化处理,网络结构为7-7-3的网络。利用5折-交叉验证,做的三类分类代码,分类精度极高。
- 2022-07-07 12:34:16下载
- 积分:1
-
卡尔曼滤波
本源码是卡尔曼滤波的VC实现,可以读入含有目标信息的txt文件,输出目标的实际航迹与预测航迹,同时可以输出航迹估计均方误差。希望可以帮助到学习卡尔曼滤波算法的朋友。
- 2022-03-30 11:40:59下载
- 积分:1
-
该资料为边角网平差计算的指导文章,并赋有相关的代码
该资料为边角网平差计算的指导文章,并赋有相关的代码-Corner of the information network adjustment calculation for the guidance of article, and are endowed with the relevant code
- 2023-04-17 12:30:03下载
- 积分:1
-
two high polynomial together
两个高次多项式相加-two high polynomial together
- 2022-08-25 10:03:52下载
- 积分:1
-
用于大型对称稀疏线性系统方程的迭代求解程序
应用背景包可以被用为求解对称线性系统的方程可能干的大型有限元离散, ;对称线性方程组可以是对称正定(SPD)或对称不定。关键技术的线性迭代(Krylov子空间迭代)求解器包括的预处理共轭梯度(PCG)方法和对称准微小残留(SQMR)方法,跑车的迭代线性求解器,Jacobi型预条件和SSOR型预条件是采用。 ;
- 2022-07-19 16:44:56下载
- 积分:1