Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6625295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:45:28+00:00 2026-05-25T21:45:28+00:00

If i read the doc of how to construct a Halton quasi-random point set

  • 0

If i read the doc of how to construct a Halton quasi-random point set and it mentions that it’s possible to ‘skip’ the first values and then retain the ‘leap’ values.

Don’t understand what the ‘skip’ and ‘leap’ really mean.

Have tried the following:

>> p = haltonset(1,'Skip',50,'Leap',10); d = haltonset(1,'Skip',51,'Leap',9);
>> p(2:10), d(1:9)
ans =
0.7344
0.0703
0.7891
0.4766
0.5859
0.1797
0.9922
0.3164
0.6602

ans =
0.7969
0.7344
0.8828
0.5391
0.8516
0.6484
0.9609
0.6172
0.7539

>> p(2:10) == d(1:9)
ans =

 0
 0
 0
 0
 0
 0
 0
 0
 0

Thought that it might be that that this would save 10 values to p and 9 to d. Also thought that d would have the same values as p. But this was not the case.

I then tested if the ‘leap’ would be the same as a normal way to make a vector
– ex: (1:leap:10)

>> p = haltonset(1,'Skip',50,'Leap',1); d = haltonset(1,'Skip',50,'Leap',2);
>> p(1:2:10)==d(1:5)
ans =
 1
 0
 0
 0
 0

>> p = haltonset(1,'Skip',0,'Leap',1); d = haltonset(1,'Skip',0,'Leap',2);
>> p(1:2:10)==d(1:5)
ans =
 1
 0
 0
 0
 0

but this seemed not to be the case..

Can anybody give a plain English explanation of how to interpreted the ‘skip’ and ‘leap’ variables.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:45:29+00:00Added an answer on May 25, 2026 at 9:45 pm

    I find the following description to be very clear [quoting this documentation page]:

    Imagine a simple 1-D sequence that produces the integers from 1 to 10.
    This is the basic sequence and the first three points are [1,2,3]:

    sequence

    Now look at how Scramble, Leap, and Skip work together:

    • Scramble: Scrambling shuffles the points in one of several
      different ways. In this example, assume a scramble turns the sequence
      into 1,3,5,7,9,2,4,6,8,10. The first three points are now [1,3,5]:

    Scramble

    • Skip: A Skip value specifies the number of initial points to
      ignore. In this example, set the Skip value to 2. The sequence is now
      5,7,9,2,4,6,8,10 and the first three points are [5,7,9]:

    Skip

    • Leap: A Leap value specifies the number of points to ignore for
      each one you take. Continuing the example with the Skip set to 2, if
      you set the Leap to 1, the sequence uses every other point. In this
      example, the sequence is now 5,9,4,8 and the first three points are
      [5,9,4]:

    Leap

    EDIT:

    Let me show with an example:

    %# create 1D sequences (x: picked, .: ignored)
    p00 = haltonset(1,'Skip',0,'Leap',0);   %# xxxxxxxxxxxxxxx
    p50 = haltonset(1,'Skip',5,'Leap',0);   %# .....xxxxxxxxxx
    p02 = haltonset(1,'Skip',0,'Leap',2);   %# x..x..x..x..x..
    p52 = haltonset(1,'Skip',5,'Leap',2);   %# .....x..x..x..x
    
    %# each pair of these are equal
    [p50(1:10) p00(6:15)]     %# skip vs. noskip
    [p02(1:5) p00(1:3:13)]    %# leap vs. noleap
    [p52(1:4) p00(6:3:15)]    %# skip+leap vs. noskip+noleap
    

    In general:

    skip = 50;
    leap = 10;
    p00 = haltonset(1,'Skip',0,'Leap',0);
    p = haltonset(1,'Skip',skip,'Leap',leap);
    
    num = 9;
    [p(1:num) p00(skip+1:leap+1:num*leap+num-leap+skip)]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to read a .doc (MSWord) file in ObjC ? Or Is
I've read the tutorial at, and I generally get how that works: http://tangentsoft.net/mysql++/doc/html/userman/tutorial.html#simple I
I'm trying to read a .doc file into a database so that I can
I'm new to the Facebook apps and recently read the doc available. Then, I
I read the doc for the Spreadsheet Edit Events but if I test which
If I open a doc in read only mode I'm able to press save
I was curious, in one doc i read it suggest using limit 1 on
I read the Hibernate Envers doc, but didn't understand how I can get the
I read at a few places (in the doc and in this blog post
I read this: http://symfony.com/doc/current/book/service_container.html It said: $mailer = $this->get('my_mailer'); As an added bonus, the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.