Skip to content

Python module for generation of Sobol' sequences

License

Notifications You must be signed in to change notification settings

elderfd/sobol_gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Small module for the generation of Sobol' sequences.

"Heavily inspired" by https://github.com/naught101/sobol_seq which itself is based on the code by John Burkardt and Corrado Chisari (http://people.sc.fsu.edu/~jburkardt/py_src/sobol/sobol.html).

Key features

  • Simple OOP interface
  • Leaping and skipping
  • Up to 40 dimensions
  • Up to 230 - 1 elements

Examples

from sobol_gen import SobolGenerator

# Make a generator for a 2D sequence
gen = SobolGenerator(2)

# Produce 100 elements of the sequence
output = gen.generate(100)

# Produce 100 elements, skipping the first 10
output = gen.generate(100, seed = 10)

# Produce 100 elements, skipping every second element
output = gen.generate(100, leap = 1)

About

Python module for generation of Sobol' sequences

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages