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

  • 一个非常经典的小游戏,潜艇大战,很有参考的价值,不足的请多多指教...
    一个非常经典的小游戏,潜艇大战,很有参考的价值,不足的请多多指教-A classic little game, Submarine War.
    2022-03-11 03:17:53下载
    积分:1
  • 一个创建快捷菜单的类
    一个创建快捷菜单的类-create an efficient menu of categories
    2022-01-22 05:26:05下载
    积分:1
  • 双链表缓冲类,可以用来实现键盘和鼠标的输入缓冲
    双链表缓冲类,可以用来实现键盘和鼠标的输入缓冲-Double-linked list buffer class, can be used to realize the keyboard and mouse input buffer
    2023-07-22 23:05:03下载
    积分:1
  • 这是一个日记本,可以记录自已每天的日记,是我自已做的。很实用,不错。...
    这是一个日记本,可以记录自已每天的日记,是我自已做的。很实用,不错。-This is a diary of this, can record their own daily diary, I do own. Practical, yes.
    2022-03-04 16:34:42下载
    积分:1
  • Delphi通过https接口post数据
    应用背景向web认证服务器通过https接口post认证数据,delphi2005正常使用。最初的的时候采用indy控件,IdHTTP和IdSSLIOHandlerSocketOpenSSL配合,但是没有成功,对方服务器连接后立即断开链接,不返回任何数据,后来通过网上查询,找到了这个方法,可以根据服务器的要求自定义头文件和post的内容。引用了WinINet,IDURI单元,其中CnMD5,CnBase64是认证业务需要加入的cnpack中的单元,和https链接无关。这种方法的另外一个好处是不用再调用indy引用的两个dll文件(libeay32.dll,ssleay32.dll),这两个文件和indy的版本还需要配套,比较麻烦,而且就是匹配了我也没有测试成功,可能和对方服务器的环境有关系,感觉还是后来的这种方式兼容性比较好关键技术主要是delphi下的开发,研究了很久,没有找到SSL双向认证的,这个终于让我找到了,可以双向认证,实现微信退款功能等等。。。。。。。。。。。。。。
    2022-03-20 05:38:43下载
    积分:1
  • 一个完整的图形绘制系统,注释清楚,操作简单
    一个完整的图形绘制系统,注释清楚,操作简单-Rendering a complete system, notes a clear, simple operation
    2022-01-20 22:59:49下载
    积分:1
  • 用vc编写的小程序,动态显示对话框,并可实现在机时随机启动...
    用vc编写的小程序,动态显示对话框,并可实现在开机时随机启动-vc prepared with the small programs, dynamic display dialog box, enabling the boot at random start
    2023-04-19 08:00:02下载
    积分:1
  • 《字符画大师》源代码
    《字符画大师》源代码-"character painting master" source code
    2022-04-13 14:30:49下载
    积分:1
  • G代码分析 数控系统G代码可视化
    前几年下载的一个可视化的G代码分析工具,可以分析数控车、数控铣走刀过程,图示显示,三维空间线条模式。非常实用。
    2022-12-18 03:35:03下载
    积分:1
  • Have you noticed the cool ghost image that Windows Explorer produces when you st...
    Have you noticed the cool ghost image that Windows Explorer produces when you start dragging files/folders from it? Well, I wanted to implement this in a C# project when dragging files between it and Windows Explorer. After a lot of Googling, I found out that there are three directions to start working on, as follows: Using a "custom" cursor created from a MemoryStream initialized from an Image, as shown in this article. Using the ImageList_BeginDrag and related APIs, as shown in this article: Dragging tree nodes in C#. Using the IDragSourceHelper and IDropTargetHelper interfaces.
    2022-03-05 15:47:46下载
    积分:1
  • 696516资源总数
  • 106446会员总数
  • 9今日下载