Random sequence generating method and device

一种生成随机序列的方法和装置

Abstract

The embodiment of the invention discloses a random sequence generating method and device. The random sequence generating method comprises the following steps: according to preset fitting precision, determining a definitional domain interval and definitional domain subintervals of a step function; in a mapping interval range, generating uniformly distributed random sequences; according to a preset mapping relation and the function values of the definitional domain subintervals of the step function, acquiring mapping subintervals corresponding to the definitional domain subintervals of the step function in the mapping interval range of the uniformly distributed random sequences; in the definitional domain subintervals of the step function, uniformly generating the random sequences according to the number of random numbers in the corresponding mapping subintervals. By the random sequence generating method, through fitting of probability density functions of random number sequences to be generated and through division from the existing random number sequences according to a preset mapping rule, the obtained random sequences not only conform to actually required distribution, but also can meet requirements of a large number theorem and a central limit theorem in a statistical sense.
本发明实施例公开了一种生成随机序列的方法和装置,该方法包括:根据预设的拟合精度确定阶梯函数的定义域区间和定义域子区间;在映射区间范围内生成均匀分布的随机序列;根据预设的映射关系以及所述阶梯函数各定义域子区间的函数值在均匀分布的随机序列的映射区间范围中获取与所述阶梯函数各定义域子区间对应的映射子区间;在所述阶梯函数的定义域子区间内按照对应的映射子区间内的随机数个数均匀生成随机序列。该方法通过拟合待生成随机数列的概率密度函数,并且从已有的随机数列中按照预设的映射规则进行划分,使获得的随机序列不仅符合实际所要求的分布,而且能够在统计意义上符合大数定理和中心极限定理的要求。

Claims

Description

Topics

Download Full PDF Version (Non-Commercial Use)

Patent Citations (0)

    Publication numberPublication dateAssigneeTitle

NO-Patent Citations (0)

    Title

Cited By (0)

    Publication numberPublication dateAssigneeTitle