-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add optional higher order moments #244
Conversation
These are part of the sums/sums_cov arrays returned by gmix.get_weighted_moments This is also available with GaussMom(fwhm, higher=True) Currently the sums are calculated and are stored in a larger "sums" and "sums_cov" arrays in the results. No normalized moments are returned. Names and indices for moments can be found in moments.MOMENTS_NAME_MAP
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.
They keyword higher
is not so clear in my opinion. Maybe we can use with_higher_order
or similar?
Here's a question: should we just always calculate these higher order moments? They probably don't cost much compared to evaluating the gaussian, and the user will usually copy what they want out |
I am concerned other APIs / users expect the shape on output to be 6x6 so if we always calculated them we'd cause API breaks. |
Good point |
gaussmom use default maxrad from gmix
Big enough that the weight function should be zero. chose 100 sigma
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.
LGTM from me!
didn't matter since its zero...
These are part of the sums/sums_cov arrays returned by gmix.get_weighted_moments when
with_higher_order=True
is sent.This is also available with
GaussMom(fwhm, with_higher_order=True)
Currently the sums are calculated and are stored in a larger "sums" and "sums_cov" arrays in the results. No normalized moments are returned.
Names and indices for moments can be found in moments.MOMENTS_NAME_MAP