-
Notifications
You must be signed in to change notification settings - Fork 52
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
separation average #271
Comments
Yes, I think you're right! Everything should be computed using the weights. Would you like to open a PR? |
@adematti Do you need the weighted average separations for your Science case or is this more of a consistency/implementation choice question? @lgarrison We had a long discussion about this when you first started implementing the weights within Corrfunc. We came to the conclusion that it was better to leave the average separations as is - since that would be the most likely use-case. And that if any user required a weighted separation, then they could "easily" add a custom weight function and keep track of the weighted mean separation. |
@manodeep well, I'd think the weighted version would be the most intuitive convention for the separation average ; this is the definition we will use in DESI --- though we will most certainly make sure cosmological results do not depend on this choice. Anyway, it's just fine to have this change only in the branch we are currently using in DESI :) |
@manodeep, thanks, I had forgotten our discussion! It's coming back to me now. However, since adding the weights over 5 years ago (!), I think I've changed my mind on the issue. It seems to me that assigning a particle a weight of 2 ought to behave as if that particle appeared twice in the input data, at least if the user has specified the Or, the more flexible thing would be to add a new column to the output called My vote would be to make |
Alright great - as always I prefer to add a user-option that allows either weighted or unweighted average separations. Would the plan be the same - provide the default PAIR_PRODUCT weighted average for separations? And anything else the user has to code those up? Regardless, if we do change the behaviour, we should try to keep backwards compatibility by default. That way this is not a breaking change but rather a functionality update. What do y'all think? |
Yeah, we already have an |
To me this seems like a good idea. |
Currently the separation average in each bin (thetaavg, ravg, savg, rpavg) is computed without taking weights into account.
I think, for usual purposes, we would like to include weights (when provided) in this computation?
Typically, we would expect the same average separation, whether a particle is weighted by 0 or is totally removed from the catalog.
It would always be possible, for someone truly interested in the non-weighted separation average, to run the computation without weights.
What do you think?
Best
The text was updated successfully, but these errors were encountered: