高尔顿板实验动态演示.docx

  1. 1、本文档共7页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
PAGE PAGE 1 / 7 高尔顿板实验动态演示 篇一:《高尔顿钉板试验模拟(程序)》 高尔顿钉板试验模拟(程序) ...这是我 2005 年 12 的课程设计中程序的核心部分,写完后自己非常得意,等着老师表扬。等啊等,等待现在也没等到 :em16: 现将它献给大家...(若有版权那遵守BSD 吧) 注 1:程序以前是用Matlab 写的现用 Java 重写 注 2:原程序中 galton 返回值为 int[] grid 、没有“输出结果” 部分 public void galton(int sumOfGrid, int sumOfBall){ int[] grid = new int[sumOfGrid]; int number = 0; //一个小球从顶端落下过程中向右偏移的总次数 int rand ; //随机数,取值范围为{0,1},为 0、为 1 的概 率相等 for( int counter_ball = 1; counter_ball // (sumOfGrid - 1)为钉板的层数 for( int times = 1; times grid[number]++; number = 0; // } //输出结果 System.out.println( 小球的总数为+sumOfBall+\t 格子的个数为+sumOfGrid ); for( int index = 0; index System.out.println( (index+1)+号格子中的小球数为:\t+grid[index] ); } }//end of metod galton 补充:(谢谢 2 楼提醒 :-D ) 高尔顿钉板试验:自板上端放入一小球, 任其自由落下.在下落过程 中, 当小球碰到钉子时, 从左边落下与从右边落下的机会相等.碰到下一排钉子也是如此.自板上端放入n(n 自行输入)个小球, 观察小球落下后呈现曲线并统计小球落入各个格子的频率. 高尔顿钉板试验可见《概率论》(复旦大学 李贤平) 当小球数量少时分布无明显特征,当小球数量多时(100)分布近似正态分布。(即两边对称:-D) 当时为了证明服从正态分布投 1 千万个小球(计算机模拟 :-D) Galton Board The Galton board, also known as aquincunx or bean machine, is a device for statistical experiments named after English scientist Sir Francis Galton. It consists of an upright board with evenly spaced nails (or pegs) driven into its upper half, where the nails are arranged in staggered order, and a lower half divided into a number of evenly-spaced rectangular slots. The front of the device is covered with a glass cover to allow viewing of both nails and slots. In the middle of the upper edge, there is a funnel into which balls can be poured, where the diameter of the balls must be much smaller than the distance between the nails. The funnel is located precisely above the central nail of the second row so that each ball, ifperfectly centered, would fall vertically and directly onto the uppermost point of this nails surface (Kozlov and Mitrofanova 2002). The figure above shows a variant of the board in which only the nails that can potentially be hit by a ball dropped from the funnel are included, leading to a triangular array instea

文档评论(0)

hao187 + 关注
官方认证
内容提供者

该用户很懒,什么也没介绍

认证主体武汉豪锦宏商务信息咨询服务有限公司
IP属地上海
统一社会信用代码/组织机构代码
91420100MA4F3KHG8Q

1亿VIP精品文档

相关文档