Creating a sampling plan using Latin Hypercube Sampling?

14 次查看(过去 30 天)
I'm trying to create a sampling plan X = [x1T x2T] with 20 points using LHS.
So far I've gotten here by referring to the Matlab documentation :
%LHS sampling plan
x1 = linspace(-2,2,20)';
x2 = linspace(-2,2,20)';
X = lhsdesign(20,2)
plot (X,"*")
But it gives me values below 0.1 which cannot be true. Can someone correct me?
  1 个评论
Sai Sri Pathuri
Sai Sri Pathuri 2020-3-4
X = lhsdesign(20,2)
plot (X,"*")
Is this the code you used exactly? I cannot reproduce this issue on my end. I got the following output with values greater than 0.1 also.
X =
0.2528 0.4297
0.0225 0.5667
0.1136 0.2533
0.6212 0.1095
0.6987 0.3758
0.8777 0.3122
0.5177 0.7291
0.0739 0.6514
0.9314 0.6006
0.7531 0.0568
0.2085 0.0306
0.4075 0.4773
0.9814 0.2377
0.5703 0.9108
0.8064 0.9559
0.3033 0.1543
0.3666 0.7721
0.4897 0.8701
0.1673 0.5426
0.7464 0.8050

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Industrial Statistics 的更多信息

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by