Skip to content
Snippets Groups Projects
Commit b0451099 authored by moritz's avatar moritz
Browse files

Moritz Huebner: Changed default parameter for sample function

parent 9fb5e469
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ class Prior(object):
def __call__(self):
return self.sample(1)
def sample(self, n_samples=1):
def sample(self, n_samples=None):
"""Draw a sample from the prior, this rescales a unit line element according to the rescaling function"""
return self.rescale(np.random.uniform(0, 1, n_samples))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment