Created
January 13, 2021 11:37
-
-
Save ShuaiGuo16/749e6aa7180b52de491f919c539f38e9 to your computer and use it in GitHub Desktop.
Generate uniform samples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Specify random sample number | |
sample_num = 1000 | |
# Using Latin Hypercube method to generate uniform distribution | |
uni_samples = lhs(n=2, samples=sample_num, criterion='maximin') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment