登录
首页 » 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 144
下载积分: 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 个回复

  • 消息循环重载实例:doevents,基于c++语言编写而成的,欢迎去下载下载...
    消息循环重载实例:doevents,基于c++语言编写而成的,欢迎去下载下载-Examples of heavy news cycle: doevents, based on c++ language has been prepared by, and welcome to download to download! !
    2022-04-08 18:02:17下载
    积分:1
  • 依据不同的屏幕解析度 ( 大字体 120 dpi、小字体 96 dpi ) 自动调整 TForm 大小的非可视构件。...
    依据不同的屏幕解析度 ( 大字体 120 dpi、小字体 96 dpi ) 自动调整 TForm 大小的非可视构件。-according to different screen resolution (120 dpi large fonts, small fonts 96 dpi) TForm automatically adjust the size of the non-visual components.
    2022-07-19 16:55:19下载
    积分:1
  • 磁盘文件的查找sam_sp_53
    磁盘文件的查找sam_sp_53-disk document search sam_sp_53
    2022-02-16 01:29:28下载
    积分:1
  • 高分辨率的计时器
    高分辨率的计时器 -An timer of high resolution
    2022-01-26 03:45:40下载
    积分:1
  • 卡耐基课程SSD1实践要求源代码完成的鲶鱼…
    iCarnegie课程上的SSD1的一个练习,要求做完Catfish的源代码的exercise。需要的可以看看。写的不好,别见怪。-iCarnegie courses SSD1 a practice to require the source code Catfish finish the exercise. Need to look at. Write well,别见怪.
    2022-01-25 16:04:52下载
    积分:1
  • 把本地计算机上的 常用程序添加到 列表 方便打文件。 避免了windows快捷方式 图标 的载入时间。 支持一切可以打的 文件文件夹。还可以 自己制作...
    把本地计算机上的 常用程序添加到 列表 方便打开文件。 避免了windows快捷方式 图标 的载入时间。 支持一切可以打开的 文件文件夹。还可以 自己制作成 工具箱、媒体箱。极大提高了效率。-The local computer is added to the list of commonly used procedures to facilitate open the file. Avoid the shortcut icon windows load times. Support all can open the file folder. Can also produce their own into the toolbox, the media box. Greatly improve efficiency.
    2022-02-05 00:51:06下载
    积分:1
  • QT TCP通讯
    应用背景 应用于WINDOWS操作系统下的网络C/S通讯,可以实现服务器和客户端的建立,相互之间的通讯。主要用于自动控制系统的上位机软件与设备之间的通讯。 关键技术主要是关于windows下的 TCP服务器件建立和TCP客户端的建立,以及之间的通讯过程。程序实际调试通过。与调试助手握手通讯正常。  
    2022-01-30 23:36:58下载
    积分:1
  • 用silverlight来解决一个蜗牛爬行轨迹的问题
    用silverlight来解决一个蜗牛爬行轨迹的问题-Use silverlight to solve a problem of a snail crawling track
    2022-01-31 01:34:32下载
    积分:1
  • RS232 串行端口
    在通信,RS-232是用于数据的串行通信的传输标准。它的DTE(数据终端设备)之间的连接的信号正式定义诸 如计算机终端,以及一个DCE(数据电路终接设备,最初作为数据通信设备[1]),如一个调制解调器。在RS-232 标准是常用的计算机的串行端口。该标准定义了电气特性和信号的定时,则信号的意义,以及连接器的物理尺寸 和引脚。该标准的最新版本是TIA-232-F接口间的数据终端设备和数据电路终端设备采用串行二进制数据交换,在 1997年发行。
    2022-11-07 04:20:03下载
    积分:1
  • three
    模拟计算机三层结构寻址,分页\段,显示具体寻址详尽过程,有助于理解三层结构原理-three-tier structure simulation computer addressable, pagination , showed specific addressable detailed process, contribute to the understanding of the three-tier structure principle
    2022-03-17 18:35:00下载
    积分:1
  • 696518资源总数
  • 106227会员总数
  • 11今日下载