请输入您要查询的英文单词:

 

单词 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.

随便看

 

英汉双解词典包含3607232条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2022 Newdu.com All Rights Reserved
京ICP备09058993号 更新时间:2025/5/13 11:37:04