jonathf / chaospy

Chaospy - Toolbox for performing uncertainty quantification.
https://chaospy.readthedocs.io/
MIT License
447 stars 87 forks source link

Latin hypercube sampling, rule="L" #395

Closed AmosJoseph closed 1 year ago

AmosJoseph commented 2 years ago

I'm writing to ask the usage below: samples =distribution.sample(size = 250, rule="L") print( samples )

pardon! Is the data got by print( samples) ordered or shuffled without order?

Thanks a lot!

jonathf commented 2 years ago

Sorry for the late reply. This has gotten forgotten a bit.

I think there are a few different definitions of what LHC sampling does, depending on usecase. Your best bet to get a good answer is to just look at the code here: https://github.com/jonathf/chaospy/blob/master/chaospy/distributions/sampler/latin_hypercube.py

Hope that helps.

AmosJoseph commented 2 years ago

OK. Thanks a lot!

------------------ 原始邮件 ------------------ 发件人: "jonathf/chaospy" @.>; 发送时间: 2022年11月10日(星期四) 晚上9:23 @.>; @.**@.>; 主题: Re: [jonathf/chaospy] Latin hypercube sampling, rule="L" (Issue #395)

Sorry for the late reply. This has gotten forgotten a bit.

I think there are a few different definitions of what LHC sampling does, depending on usecase. Your best bet to get a good answer is to just look at the code here: https://github.com/jonathf/chaospy/blob/master/chaospy/distributions/sampler/latin_hypercube.py

Hope that helps.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>