Advertisement
Guest User

Untitled

a guest
May 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. class BernoulliArm(object):
  2.  
  3. def __init__(self, mu):
  4. self.mu = mu
  5.  
  6. def draw(self):
  7. return np.random.binomial(n=1, p=self.mu)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement