-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stateful iteration #15
base: main
Are you sure you want to change the base?
Conversation
@ParadaCarleton @mschauer how does this look? |
Codecov Report
@@ Coverage Diff @@
## main #15 +/- ##
==========================================
- Coverage 42.25% 40.13% -2.13%
==========================================
Files 8 8
Lines 142 152 +10
==========================================
+ Hits 60 61 +1
- Misses 82 91 +9
Continue to review full report at Codecov.
|
We can abstract this a little, then Sobol and GoldenSequences should be able to share the same code |
Looks good! Don't see any issues. |
Am I right to assume we only need ever infinite sequences (which perhaps repeat?). In that case I think we should implement our own version of stateful. |
@mschauer I think I know what you mean, but maybe we should introduce some terminology to be safe. For both Sobol and GoldenSequences, the user selects a dimensionality at construction time (well, GS can do some other fancy things, but let's ignore those for now). If we ask for a So we generally step through these Ok, so with that I think the inner iteration will generally be finite (I think it has to be?), but the outer iteration will not. |
Using
Iterators.Stateful
, we can rewrite our Sobol sequence interface as