登录
首页 » Windows开发 » procedures have only mean of 0 and variance for a random number to produce the m...

procedures have only mean of 0 and variance for a random number to produce the m...

于 2022-10-24 发布 文件大小:1.85 kB
0 50
下载积分: 2 下载次数: 1

代码说明:

程序只产生均值为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.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • wizard like IE5 mode
    IE5样式的向导-wizard like IE5 mode
    2022-07-14 12:11:37下载
    积分:1
  • 升级MP3代码,使用第三方DLL实现对MP3升级
    升级MP3代码,使用第三方DLL实现对MP3升级-Upgrade MP3 code, using third-party DLL to realize MP3 Upgrade
    2022-01-26 01:00:39下载
    积分:1
  • 语音通信控件
    VSession语音通信控件适用于VC++、VB、 dot NET平台、C++Builder、Delphi、易语言及网页应用程序等常见开发平台。您只要先在系统中安装控件(双击开发包中的文件“ 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-02-04 18:05:48下载
    积分:1
  • 有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 1.程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列...
    有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 1.程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去       掉不满足条件的排列。 :企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;利润高    于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可可提    成7.5%;20万到40万之间时,高于20万元的部分,可提成5%;40万到60万之间时高于    40万元的部分,可提成3%;60万到100万之间时,高于60万元的部分,可提成1.5%,高于    100万元时,超过100万元的部分按1%提成,从键盘输入当月利润I,求应发放奖金总数? 1.程序分析:请利用数轴来分界,定位。注意定义时需把奖金定义成长整型。       输入某年某月某日,判断这一天是这一年的第几天? 1.程序分析:以3月5日为例,应该先把前两个月的加起来,然后再加上5天即本年的第几天,特殊       情况,闰年且输入月份大于3时需考虑多加一天。 -err
    2022-03-18 00:02:52下载
    积分:1
  • Based on the WinCE operating system, SMDK2410 hardware development platform for...
    基于WinCE操作系统、SMDK2410硬件开发平台下的键盘程序――通过串口传输键值-Based on the WinCE operating system, SMDK2410 hardware development platform for keyboard under the program- through the serial transmission key
    2022-07-04 14:57:30下载
    积分:1
  • 目标跟踪与跟踪算法模型及其算法实现。
    物体追溯与跟踪算法模型与算法实现。提出通用的追溯和跟踪模型,适合物流以及产品质量追溯中的应用。- Object trace and tracking algorithm model and algorithm implementation.
    2023-03-09 22:50:03下载
    积分:1
  • B-Tree Filer is a fast library of file-based database routines for Borland Turbo Pascal & Delphi. B-Tree Filer supports stand-alone programs or those running on Microsoft-compatible networks including Novell Netware.-B-Tree Filer is a fast library of file-based database routines for Borland Turbo Pascal Delphi. B-Tree Filer supports stand-alone programs or those running on Microsoft-compatible networks including Novell Netware.
    2022-04-22 19:34:47下载
    积分:1
  • 很好的程序 很好的程序 很好的程序 很好的程序
    很好的程序 很好的程序 很好的程序 很好的程序-henghaodechengxuhenghaodechengxuhenghaodechengxuhenghaodechengxuhenghaodechengxuhenghaodechengxuhenghaodechengxuhenghaodechengxu
    2022-01-25 16:10:49下载
    积分:1
  • 语法分析器,用C++运行。非常好用啊!能运行。
    语法分析器,用C++运行。非常好用啊!能运行。-Parser
    2022-06-21 19:32:57下载
    积分:1
  • 设计与工程时间:软件中的时间知觉心理…
    Designing and Engineering Time: The Psychology of Time Perception in Software by Steven C. Seow Ph.D. 2008
    2022-01-31 04:24:04下载
    积分:1
  • 696521资源总数
  • 104061会员总数
  • 15今日下载