Skip to content

Fix flux error aggregation for multi-component sources - #395

Open
AlexKurek wants to merge 2 commits into
lofar-astron:masterfrom
AlexKurek:Fix-ignoring-of-the-covariance-of-flux-error
Open

Fix flux error aggregation for multi-component sources#395
AlexKurek wants to merge 2 commits into
lofar-astron:masterfrom
AlexKurek:Fix-ignoring-of-the-covariance-of-flux-error

Conversation

@AlexKurek

Copy link
Copy Markdown
Contributor

totE (total flux error) in multi-Gaussian sources was underestimated. Aggregating errors in quadrature assumes independent Gaussian components, which is invalid for overlapping fits within a single island.

Fix
Replaced root-sum-square addition with linear summation to account for component covariance (in the absence of a full covariance matrix).

@gmloose gmloose left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is probably correct, but I would like @darafferty's opinion on this too.

@gmloose
gmloose requested a review from darafferty August 20, 2026 10:39
@darafferty

Copy link
Copy Markdown
Collaborator

Yes, I think this change makes sense, but please also update the text regarding the errors in the documentation (https://github.com/lofar-astron/PyBDSF/blob/master/doc/source/algorithms.rst?plain=1#L63).

@AlexKurek

Copy link
Copy Markdown
Contributor Author

thank you for pointing this out. Done.

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.

3 participants