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

  • windows编程帮助文件,基于c和汇编部分。
    windows编程帮助文件,基于c和汇编部分。-help files, for the c and part of the compilation.
    2023-08-10 22:15:04下载
    积分:1
  • java小程序2:1。输入五名学生成绩,这个数字将B。
    Java小程序两个: 1.输入五个同学的成绩,并将这五个数保存到文件“data.txt”中。然后再编写一个程序:从“data.txt”中读取这五个成绩,计算他们的平均数,然后从小到大排序并输出这五个人的成绩。 2.将八皇后问题的所有界保存到文件“Queen.txt”中。-Java applet 2 : 1. Importation of five students achievements, This number will be five to preserve documents "data.txt". Then the preparation of a program : "data.txt" Read this five results, calculating the average, then order from small to large output and five personal achievements. 2. Eight of the Queen"s community preservation of all documents "Queen.txt".
    2022-01-26 03:42:59下载
    积分:1
  • 基与MFC的拼图游戏源码 实现功能,可自定义图块大小,个数与源图片,拼自己喜欢的图片,记时,记分 ChildView.h ImageBlock.h...
    基与MFC的拼图游戏源码 实现功能,可自定义图块大小,个数与源图片,拼自己喜欢的图片,记时,记分 ChildView.h ImageBlock.h 。 。 。 PatchManager.cpp PatchBoard.cpp Settingdlg.c-The base of the jigsaw puzzle with the MFC source code to achieve functionality, can be customized tiles size, the number of source images, to fight their favorite pictures, remember, the score
    2022-01-26 18:32:50下载
    积分:1
  • 汇编课程设计案例 显示彩色矩形块
    汇编课程设计案例 显示彩色矩形块-compilation curriculum design case shows that the color rectangular block
    2022-03-30 08:47:24下载
    积分:1
  • CxIMAG库文件
    Cximage库对图片的处理:包括图片的格式转换,图片的二次识别,图片字符的叠加,图片的锐化等等
    2022-04-20 13:26:09下载
    积分:1
  • hello程序!
    hello program! visual C-program hello! Visual C
    2023-03-07 05:30:03下载
    积分:1
  • 你好
    hello I write this program to chenge the size of all forms and controls in my projects.and I useing it for larg projects .But you can change it for any pubic change in your pojects Just chenge your target in conver() method and enjoy-hello I write this program to chenge the size of all forms and controls in my projects.and I useing it for larg projects .But you can change it for any pubic change in your pojects Just chenge your target in conver() method and enjoy
    2022-02-05 12:42:48下载
    积分:1
  • 下载进度条
    此代码是用VB写的下载进度条,当我们平时看到显示--文件加载中,图片加载中,其实就是这么来的。
    2022-06-02 02:57:22下载
    积分:1
  • 图表分析,写的不错的
    图表分析,可以自定义线数,具体伸张形,通过,图标增加表中线数,用到线程,listcontrol,进度条,数据分析,颜色选择, 坐标切换等vc许多基本知识,大家可以看下,个人觉得对初学者很多帮助,特别是要写图形控件
    2022-01-22 17:38:07下载
    积分:1
  • Windows NT Services library
    Windows NT Services library-This library is full encapsulation of Microsoft Windows NT (NT4, 2k, XP and Vista) services API. > SERVICES IMPLEMENTATION* almost full Windows NT API encapsulation* full customization via callback* embeddable in DLL s* full logging support (via Windows events logs)* converts any C/C++ application (and others that support C linkage) in an NT service with just a function call > SERVICES CONTROL* install, modify, remove services* start, stop, pause, restart service* check service status* list services* get extended service informations* dependencies management* remote machine services access > MISC.* ansi/unicode support
    2022-03-23 19:58:12下载
    积分:1
  • 696518资源总数
  • 105678会员总数
  • 22今日下载