网站首页  情感咨询  情感美文  情感百科  情感生活  学习充电  旧版美文

请输入您要查询的词汇:

 

词汇 Middle square method
分类 英语词汇 英语翻译词典
释义

Middle square method

中文百科

平方取中法 Middle-square method

(重定向自Middle square method)

平方取中法Middle-square method)是个产生伪随机数的方法,由冯·诺伊曼在1946年提出。

算法:

  1. 选择一个m位数N_i作为种子。
  2. 计算N_i^2
  3. N_i^2不足2m个位,在前补0。在这个数选中间m个位的数,即10^{\lfloor m/2 \rfloor}10^{\lfloor m/2 \rfloor+m}的数,将结果作为N_{i+1}
英语百科

Middle-square method 平方取中法

(重定向自Middle square method)
One iteration of the middle-square method, showing a six digit seed, which is then squared, and the resulting value has its middle six digits as the output value (and also as the next seed for the sequence).
Directed graph of all 100 2-digit pseudorandom numbers obtained using the middle-square method with n = 2.

In mathematics, the middle-square method is a method of generating pseudorandom numbers. In practice it is not a good method, since its period is usually very short and it has some severe weaknesses, such as the output sequence almost always converging to zero.

随便看

 

依恋情感网英汉例句词典收录3870147条英语例句词条,基本涵盖了全部常用英语单词的释义及例句,是英语学习的有利工具。

 

Copyright © 2004-2024 Yiyi18.com All Rights Reserved
京ICP备2021023879号 更新时间:2025/8/7 1:16:31