-
Notifications
You must be signed in to change notification settings - Fork 263
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
842 - Approximate Moran Process #955
Conversation
Removing many skip statements with a seeded call.
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.
Nice :) Just the one little change please.
axelrod/tests/unit/test_random_.py
Outdated
|
||
class TestPdf(unittest.TestCase): | ||
"""A suite of tests for the Pdf class""" | ||
observations = [('C', 'D')] * 4 + [('C', 'C')] * 12 + \ |
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.
C
and D
instead of 'C'
and 'D'
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.
Good catch. Bad habits die hard. Done 👍
Closes #842
Adds an approximate Moran process that can take a sample of match outcomes (so that these are not rerun every time).
This also makes a
random_.Pdf
class available, which is a generic probability distribution function with asample
method (could be useful elsewhere).