-
Notifications
You must be signed in to change notification settings - Fork 60
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
Stats 1 d #290
Stats 1 d #290
Conversation
…tion to Q, using pyFAI's calibration/geometry object
nx = _defaults["bins"] | ||
|
||
# use a weighted histogram to get the bin sum | ||
bins = np.linspace(start=min_x, stop=max_x, num=nx+1, endpoint=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a helper function in core to take any permutation of how to specify bin edges. Might be worth either use that here taking in the bins array as input.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I copied the signature from bin_1D
ENH: add statistics_1D + wrap pyfai pixel -> q computations
Add function for doing more advanced statistics on 1D histograms.