-
Notifications
You must be signed in to change notification settings - Fork 13
Rcpp wrapping for Shake and Bake / Billiard Shake and Bake #34
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
base: develop
Are you sure you want to change the base?
Rcpp wrapping for Shake and Bake / Billiard Shake and Bake #34
Conversation
| if (HP.is_in(StartingPoint) == 0) { | ||
| throw Rcpp::exception("The given point is not in the interior of the polytope!"); | ||
| } | ||
| if (gaussian) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the boundary sampling algorithms are not selected then everything else should remain the same. Can you confirm that your changes does not break anything not related to boundary sampling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the Boundary HR algorithms they work properly, my code shouldn't affect anything because it is just protects shake and bake sampling from obtaining interior starting point
| if (!set_starting_point) StartingPoint = InnerBall.first; | ||
| if (!set_mode && gaussian) mode = InnerBall.first; | ||
| if ((walk == shake_and_bake) || (walk == billiard_shake_bake)) { | ||
| if (!set_starting_point){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if the user does give a boundary point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this if loop just changes the starting point, everything else remains the same, it will just sample with the user given starting point
|
Thanks @ivajankovic! This is an important feature! I left a few comments. |
|
100D cube:
|
Rcpp wrapping for previously implemented Shake and Bake / Billiard Shake and Bake algorithms within sample_points.cpp.