Skip to content
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

fixing the chi2 value printed in MFLike #96

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mflike/mflike.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def _loglike(self, cl, fg_totals, params_values):
# logp = -0.5 * (delta @ self.inv_cov @ delta)
chi2 = self._fast_chi_squared(self.inv_cov, delta)
logp = -0.5 * chi2 + self.logp_const
self.log.debug(f"Log-likelihood value computed = {logp} (Χ² = {-2 * chi2})")
self.log.debug(f"Log-likelihood value computed = {logp} (Χ² = {chi2})")
return logp

def loglike(self, cl, fg_totals, **params_values):
Expand Down