相关文章推荐
不拘小节的排球  ·  python ...·  2 天前    · 
纯真的羽毛球  ·  Apps脚本中的日期格式 - ...·  12 小时前    · 
强健的毛豆  ·  Spring Boot ...·  1 月前    · 
胆小的签字笔  ·  html pre标签-掘金·  8 月前    · 
酒量大的乒乓球  ·  Python 操作 MySQL ...·  11 月前    · 
精明的荔枝  ·  【划重点】Python ...·  1 年前    · 

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?

Answers

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

  • 浏览量 18
  • 收藏 0
  • 0

所有评论(0)