- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
I am trying to figure out skipahead. Need some help.
Let us say that I do the following
int nskip=10; //Test the theory
VSLStreamStatePtr stream[2];
vslNewStream( &stream[0], brng, seed );
vslCopyStream( &stream[1], stream[0] );
vslSkipAheadStream( stream[1], nskip );
Now when I generate random numbers from stream 0 and stream 1, should I expect the 11th element in sequence from call to stream 0 to be the same as the fist element in the sequence in calls to stream 1? That is what the vslnotes seems to suggest, but my experiments don't show it.
Thanks
I am trying to figure out skipahead. Need some help.
Let us say that I do the following
int nskip=10; //Test the theory
VSLStreamStatePtr stream[2];
vslNewStream( &stream[0], brng, seed );
vslCopyStream( &stream[1], stream[0] );
vslSkipAheadStream( stream[1], nskip );
Now when I generate random numbers from stream 0 and stream 1, should I expect the 11th element in sequence from call to stream 0 to be the same as the fist element in the sequence in calls to stream 1? That is what the vslnotes seems to suggest, but my experiments don't show it.
Thanks
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Yes, you are right. However, please, keep in mind that some of the basic random number generators do not support skip-ahead method. What BRNG do you use in your program? Also, it could be nice if you provide short working test case which would demonstrate the issue.
Thank you.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page