Skip to content

Commit

Permalink
Fix MLE for halfnormal (#329)
Browse files Browse the repository at this point in the history
* fix mle halfnormal

* fix mle halfnormal

* fix kwargs
  • Loading branch information
aloctavodia authored Feb 25, 2024
1 parent 950e2a7 commit a9120bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion preliz/distributions/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ def _fit_moments(self, mean, sigma): # pylint: disable=unused-argument
self._update(sigma)

def _fit_mle(self, sample, **kwargs):
_, sigma = self.dist.fit(sample, **kwargs)
sigma = np.mean(sample**2) ** 0.5
self._update(sigma)


Expand Down

0 comments on commit a9120bb

Please sign in to comment.