sahilm89 / lhsmdu

This is an implementation of Deutsch and Deutsch, "Latin hypercube sampling with multidimensional uniformity", Journal of Statistical Planning and Inference 142 (2012) , 763-772
MIT License
79 stars 16 forks source link

Repeated sampling #1

Closed thompsonsed closed 7 years ago

thompsonsed commented 7 years ago

Hi Sahil,

I am using your (extremely useful) script for sampling from parameter space, but this needs to be done identically on repeated simulations. I noticed that supplying randomSeed to sample() has no effect, so have modified my version to have randomSeed = None by default, and include

if randomSeed is not None: random.seed(randomSeed)

within sample()

This solved my issue. Reporting here in case it should be included into the main commit.

Apologies if this is the wrong place to log this issue; I'm new to github.

Thanks,

Sam

sahilm89 commented 7 years ago

Hi Thompson,

randomSeed should now work, thanks!