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

  • 英文主源代码,附录的源代码
    《英文版掌握Vc++》附录中的源代码-"English master Vc" appendix of source code
    2022-08-10 00:14:19下载
    积分:1
  • 基本的游戏
    这是游戏的基本的 c# 示例。 c# 代码比较简单,你可以做到。 ( 私人 void Form1_Load EventArgs e 对象发件人) { pictureBox2.Visible = false; pictureBox4.Visible = false; pictureBox5.Visible = false; } 私人 void Form1_KeyDown (对象发件人、 KeyEventArgs e) { 如果 (e.KeyCode = = 点头哈腰) { pictureBox1.Left = pictureBox1.Left + 10 ;
    2022-03-02 11:06:11下载
    积分:1
  • LED 显示 的小程序主要用于获得点阵码串口通信的自己设置
    LED 显示 的小程序主要用于获得点阵码串口通信的自己设置-LED display of small programs mainly for access to serial dot matrix codes set up their own communications
    2022-04-22 22:21:35下载
    积分:1
  • 报表控件例子
    应用背景冠格报表控件ChartReport是一个轻量级的Web报表空间,运行于Asp.Net 2.0+,支持设计时报表呈现。 目前支持的报表类型:折线,直方图,圆形,立体饼形及立体圆环。 关键技术冠格报表控件ChartReport主要的技术: 1、 Thread Caching运行时不产生任何临时文件; 2、Design-Time 支持,设计时的所见即所得,提高设计效率。 3、精简算法,轻量级的控件,极大提高了响应时间。
    2022-10-13 17:20:02下载
    积分:1
  • 字符编码的转换,可以支持GB2312,电脑,汉字,字符…
    字符编码转换,可以支持gb2312、ASCll、汉字、字符之间的转换-Character encoding conversion, can support gb2312, ASCll, characters, character conversion between
    2022-02-07 17:53:17下载
    积分:1
  • I saw the full screen caption bar that came on top. The FullScreenHeader is a lo...
    I saw the full screen caption bar that came on top. The FullScreenHeader is a look alike of that caption, it is made in Win32 and I ve tried to make it somehow custom. This is my first Win32 app ever released, and there may be errors on it. Please point out any errors done!
    2023-07-11 01:10:03下载
    积分:1
  • delphi7 achieve login interface control, and access to this information for the...
    delphi7实现登录界面的控制,及获取本机的信息的功能及FTP功能的部分实现-delphi7 achieve login interface control, and access to this information for the function and FTP functions partially
    2023-02-26 15:05:04下载
    积分:1
  • 图象中间的窗口可以有小变大,中间的红心逐渐出现,并流下变化的痕迹.按照屏幕的提示,进行操作...
    图象中间的窗口可以有小变大,中间的红心逐渐出现,并流下变化的痕迹.按照屏幕的提示,进行操作-windows in the middle of the image can resized,the red heart will appear slowly,and left the imprint of changing,follow the instruct and operate
    2022-04-07 21:02:08下载
    积分:1
  • neural networks by c
    neural networks by c-neural networks by c++
    2023-05-02 06:35:03下载
    积分:1
  • 雷达信号处理仿真程序
    为完成雷达数字信号检测和信息提取功能所采取的实施手段。物体的反射回波是微弱的高频信号,经过变频、放大和滤波等处理变成具有一定强度的模拟信号(时间上连续,幅度上可为任意实数值)。数字处理须采用模拟-数字转换器,把模拟信号转换成为数字信号(时间上离散,幅度上分层),然后进行各种运算和处理。
    2022-04-17 07:32:11下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载