OKJN
OKJN

Reputation: 31

Is there a python equivalent to Matlab function lhsnorm?

I am trying to obtain stratified random samples from a normal distribution.

On Matlab this is as simple as X = lhsnorm (mu, sigma, n)

Mathworks documentation: https://uk.mathworks.com/help/stats/lhsnorm.html

Is there an equivalent way to do this in python?

Upvotes: 0

Views: 1169

Answers (1)

MR.Mohebian
MR.Mohebian

Reputation: 162

use numpy package and type:

np.random.normal(mu, sigma, n)

Upvotes: 0

Related Questions