Skip to content

Instantly share code, notes, and snippets.

@ShuaiGuo16
Created January 13, 2021 11:37
Show Gist options
  • Save ShuaiGuo16/749e6aa7180b52de491f919c539f38e9 to your computer and use it in GitHub Desktop.
Save ShuaiGuo16/749e6aa7180b52de491f919c539f38e9 to your computer and use it in GitHub Desktop.
Generate uniform samples
# 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