Is there a bug in the Hatlonset?

조회 수: 1 (최근 30일)
Manuel
Manuel 2015년 11월 2일
댓글: Manuel 2015년 11월 5일
Hello,
I am using the haltonset to generate quasi random variable, but I will get strange numbers if I am using more then 26 dimension.
e.g. q = haltonset(26,'Skip',1e3,'Leap',1e2); RandMat_Halton = net(p,100);
the 26 Dimension is not well distributed between 1 and 0. It is more clustering around 0.9 , the Sobolset works well. Is there a solution or maybe a bug in the code?
Cheers Manuel

채택된 답변

Tushar Sinha
Tushar Sinha 2015년 11월 4일
Hi Manuel,
The following link answers your question related to the points returned not always uniformly distributed over each of the dimensions when using "Haltonset" with 26 dimensions.
The above link mentions that:
A known rule for choosing Leap values for Halton sets is to set it to (P-1) where P is a prime number that has not been used to generate one of the dimensions, i.e. for a k-dimensional point set P would be the (k+1)th or greater prime.
I hope this helps resolve the issue you are facing.
Thanks,
Tushar
  댓글 수: 1
Manuel
Manuel 2015년 11월 5일
Hi Tushar
Thank you so much for your advice and helped a lot to resolve my issue. I could combine the rule with the function ( nthprime ) and now it is working perfectly!
Cheers Manuel

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Design of Experiments (DOE)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by