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

Th228 fits: pvalue, fwhm uncertainty, iterative fits (optional) #29

Closed
wants to merge 7 commits into from
Closed

Conversation

LisaSchlueter
Copy link
Contributor

  1. gof.jl contains 3 functions to calculate the p-value as a goodness-of-fit for the calibration peak fits.
  • p_value (default). based on least-squares
  • p_value_LogLikeRatio based on likelihood ratio
  • p_value_LogLikeRatio Monte Carlo to sample loglikelihood
  1. iterative_fits as a new argument for fit_peaks. default is false. If true and the fit parameter covariance matrix is not semi positive definite, the peak fit is repeated with low_e_tail=false
  2. nearestSPD(): finds nearest semi positive definite matrix
  3. uncertainties on fwhm now with correlated sampling. see get_mc_value_shapes

@theHenks theHenks self-requested a review February 2, 2024 14:54
@theHenks theHenks added the enhancement New feature or request label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants