-
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
Uniform sampling #31
Uniform sampling #31
Conversation
This looks very nice, but in order to avoid revisiting the sampling code soon (when completing the last step of #29 ) we think we should try to make sampling a bit more general. This will be very similar to what you already have done here, but with a more general interface. We have two goals here, with a third distant goal which may influence the design:
Mary and I can think of essentially two ways to achieve these goals. The first is to overload the sampling method to either take a reference to a vector of edge probabilities, indexed by edgeIds, or a The second option would be to only implement the first version of the sampling method, and define some other object which produces (something acting like) a vector of edge probabilities, given a The function which takes edge weights and outputs a probability distribution on edges can take a vector of |
Ognian has satisfied these concerns. We can use the |
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.
Looks good!
Sampling trees uniformly