Creating a sampling plan using Latin Hypercube Sampling?
조회 수: 3 (최근 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
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 Center 및 File Exchange에서 Industrial Statistics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!