Skip to content

Commit

Permalink
fix density setting (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathematicalmichael authored Feb 8, 2021
1 parent c3a13c1 commit f8d3f9c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mud/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def set_initial(self, distribution=None):
mn = np.min(self.domain, axis=1)
mx = np.max(self.domain, axis=1)
distribution = dist.uniform(loc=mn, scale=mx - mn)
distribution = dist.norm()
else:
distribution = dist.norm()
initial_dist = distribution
self._in = initial_dist.pdf(self.X).prod(axis=1)
self._up = None
Expand Down Expand Up @@ -122,7 +123,8 @@ def set_prior(self, distribution=None):
mn = np.min(self.domain, axis=1)
mx = np.max(self.domain, axis=1)
distribution = dist.uniform(loc=mn, scale=mx - mn)
distribution = dist.norm()
else:
distribution = dist.norm()
prior_dist = distribution
self._pr = prior_dist.pdf(self.X).prod(axis=1)
self._ps = None
Expand Down

0 comments on commit f8d3f9c

Please sign in to comment.