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

DM-39048: Use Gaussian histogram KS-test for good point selection in PTC fit. #189

Merged
merged 9 commits into from May 10, 2023

Conversation

erykoff
Copy link
Contributor

@erykoff erykoff commented May 9, 2023

In addition to changing to the Gaussian histogram ks-test p-value for good point / turnoff selection, this PR also fixes a few other issues:

  • Min/max point selection has been moved from the extraction task to the solver task, as this is a more convenient place for testing different cuts.
  • When doing exponential or polynomial fit, the finalMeans and finalVars had an index error due to the way padding was done. This has been fixed.
  • The final ptc dataset now has the same exposure ID sorting for every amp. This wasn't a bug but was potentially confusing.

chi2Dof : `float`
Chi-squared per degree of freedom of Gaussian fit.
kspValue : `float`
The KS test p-value for the Gaussian fit.
Copy link
Contributor

@plazas plazas May 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you comment in Notes on what values are expected for Gaussian distribution? Or what is the range of values considered in this code?

@erykoff erykoff merged commit 284e675 into main May 10, 2023
@erykoff erykoff deleted the tickets/DM-39048 branch May 10, 2023 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants