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

  • 游戏编程实例,注释不太详细,不过代码简单
    游戏编程实例,注释不太详细,不过代码简单-game programming examples, the Notes are less detailed, but a simple code
    2022-03-04 08:20:51下载
    积分:1
  • 《Windows核心编程》(第五版)Code
    这是一本经典的Windows核心编程指南,从第1版到第5版,引领着数十万程序员走入Windows开发阵营,培养了大批精英。 作为Windows开发人员的必备参考,本书是为打算理解Windows的C和C++程序员精心设计的。第5版全面覆盖Windows XP,Windows Vista和Windows Server 2008中的170个新增函数和Windows特性。书中还讲解了Windows系统如何使用这些特性,我们开发的应用程序又如何充分使用这些特性,如何自行创建新的特性。
    2023-09-06 11:55:04下载
    积分:1
  • C语言的各种常用的算法, 包含相关应用范例.
    C语言的各种常用的算法, 包含相关应用范例.-C language, a variety of commonly used algorithms, including examples of relevant applications.
    2022-05-22 12:45:11下载
    积分:1
  • EVC6下非常好的按钮贴图,非常炫,强烈推荐下载!
    EVC6下非常好的按钮贴图,非常炫,强烈推荐下载!-EVC6 button under the picture very good, very-hyun, strongly recommend to download!
    2022-01-26 00:55:45下载
    积分:1
  • Floyd-Steinberg Dithering佛洛伊德斯坦伯格抖动算法
    只有三个核心函数。 PlusTrancate,FindNearestColor和Process。 PlusTrancate尝试将一个量化误差添加到现有颜色中,并防止流过色,因为最大数为255。 FindNearestColor是最接近的颜色,您需要将调色板传递到此函数中以查找您要查找的映射。 例如 [{0,0,0},{255,255,255}]表示黑白 [{255,0,0},{0,255,0},{0,0,255}]表示RGB [{0,255,255},{255,0,255},{255,255,0}]表示CMY 图像的每个像素的核心功能过程然后从该像素获得最近的颜色,并从环绕颜色计算量化误差,使图像变得更具代表性。
    2023-05-20 15:10:03下载
    积分:1
  • 一个限定使用次数的例子,对于开发试用版本的windows应用程序有很大的参考价值...
    一个限定使用次数的例子,对于开发试用版本的windows应用程序有很大的参考价值-use of a limited number of examples, for the development of beta version of windows applications have great reference value
    2022-10-20 01:05:04下载
    积分:1
  • 通过MFC框架编程,实现枚举当前系统中的所有进程!
    通过MFC框架编程,实现枚举当前系统中的所有进程!-Through the MFC framework for programming, realize the current system of enumeration of all the process!
    2022-02-06 06:08:02下载
    积分:1
  • 图书管理系统
    纯java开发图书管理系统,增删改查等功能均全部实现,欢迎下载学习.
    2022-02-25 00:59:25下载
    积分:1
  • 超市库存管理,采购,销售模块。完美语句,…
    管理超市库存,采购,销售的模块.完善的报表,收银.方便管理人员查看报表,再好的为管理人员做出正确的决策提供依据.-Supermarket inventory management, purchasing, sales module. Perfect statements, the cash register. To facilitate managers to view reports, no matter how good for managers to make the right decisions.
    2022-03-23 20:04:11下载
    积分:1
  • 用mfc实现基于对话框的有背景图的应用程序
    用mfc实现基于对话框的有背景图的应用程序-using dialog-based map of the background applications
    2022-05-15 06:05:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载