Generating low discrepancy quasi-random sequences in python/numpy/scipy?

大兔子大兔子 提交于 2019-12-03 06:10:16

问题


There is already a question on this but the answer contains a broken link, and being over two years old, I'm hoping there's a better solution now :)

Low discrepancy quasi-random sequences, e.g. Sobol sequences, fill a space more uniformly than uniformly random sequences. Is there a good/easy way to generate them in python?


回答1:


I think the best alternative for Low Discrepancy sequences in Python is Sensitivity Analysis Library (SALib):

https://github.com/SALib/SALib

I think this is an active project and you can contact the author to check if the functionalities you need are already implemented. If that doesn't solve your problem, Corrado Chisari ported a SOBOL version made in Matlab (by John Burkardt) to Python, you can access it here:

http://people.sc.fsu.edu/~jburkardt/py_src/sobol/sobol.html

Someone cleaned up the comments in these sources and put them in the format of docstrings. It's much more readable and you can access it here:

https://github.com/naught101/sobol_seq



来源:https://stackoverflow.com/questions/24433891/generating-low-discrepancy-quasi-random-sequences-in-python-numpy-scipy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!