摘要
目的:基于MC法生成符合预期概率分布的随机序列,以便应用在以后的仿真系统中。方法:应用线性同余法在visu-al studio环境中建立随机模型模拟随机序列生成。并采用χ2拟合优度检验法和自相关检验法检验生成的随机序列的均匀性、独立性。结果:100组随机序列的检验结果表明,独立性检验通过率为96%,均匀性检验通过率达到94%以上。结论:方法生成的随机序列满足随机性要求,以此定义的类模块可应用于今后的仿真实验中。
AIM. To generate random sequences that can fit the anticipated probability distribution based on the thinking of MC, METHODS. We establish a method in the IDE of visual studio by the way of Linear Congruential Method to generate random sequences. We also test the homogeneity and independence by the chi--sqare Goodness of Fit Test and Self--correlation Test. RESULTS: After check of 100 groups of random sequences, the result showed that the random sequence satisfied the demand of homogeneity and independence distribution(the thruput over 96% and 94%). CONCLUSION:The sequences can fit the desire of randomness and the class module defined can be used in further trial.
出处
《数理医药学杂志》
2008年第3期314-316,共3页
Journal of Mathematical Medicine
基金
国家自然科学基金(30271462)
广东省科技攻关计划(2KM04501S)
广州市科技攻半重点项目(2003Z2-E0061
E0062)
关键词
MC
线性同余法
均匀性检验
独立性检验
Monte-Carlo
Linear Congruential Method
test of homogeneity
test of independence