- 1、本文档共7页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 钢筋机械连接施工工艺.docx
- 钢筋加工检验批质量验收记录表.docx
- 钢筋加工棚验算.docx
- 钢筋加工棚验算书.docx
- 钢筋拉伸试验操作.docx
- 钢筋笼滚焊机主要性能及优势.docx
- 钢筋套丝机现场检查记录表格模板.docx
- 钢筋下料技术交底.docx
- 钢筋在停工期间防锈处理.docx
- 钢桥施工组织设计.docx
- 人教新目标版英语九年级 中考模拟学情评估(三)(含答案).pdf
- 上海市风华中学2024-2025学年高三上学期9月阶段测试英语试题(无答案).pdf
- 统编版2024-2025学年语文六年级上册期末检测卷(有答案).pdf
- 人教新目标版英语九年级第二学期全册学情评估(含答案).pdf
- 内蒙古自治区巴彦淖尔市杭锦后旗第六中学2024-2025学年八年级上学期阶段性测试历史试题(解析版).pdf
- 湖南省娄底市涟源市部分学校2024-2025学年高一上学期9月月考语文试题 Word版无答案.pdf
- 湖南省衡阳市常宁市2023-2024学年七年级上学期期末考试英语试题.pdf
- 湖南省娄底市涟源市部分学校2024-2025学年高一上学期9月月考语文试题 Word版含解析.pdf
- 江苏省泰州市姜堰区城西实验学校2024-2025学年部编版九年级上学期月考历史试卷(原卷版).pdf
- 内蒙古伊金霍洛旗2022-2023学年七年级上学期期末考试英语试题.pdf
最近下载
- 老年人误吸的预防护理课件.pptx
- 初中历史八年级下课件:第4课新中国工业化的起步和人民代表大会制度的确立.pptx
- 私募股权投资基金运作与管理-配套课件.ppt
- 2022小学体育新课标试卷及答案(共二套).doc VIP
- 4、新中国工业化的起步和人民代表大会制度的确立.docx VIP
- GB T 23776-2018_茶叶感官审评方法_高清版_可检索.pdf
- 中国民间故事阅读交流课教学设计.docx VIP
- 体量与力量——雕塑的美感 课件-2023-2024学年高中美术人美版(2019)美术鉴赏.pptx VIP
- 2022年牛津英语上海中考常考高频同义词组转换(含习题).docx
- 市场调查报告(模板).xls VIP
文档评论(0)