Fix: change convention for Downsample2d default sigma - #795
Conversation
|
@claude review. |
|
Claude finished @mrava87's task in 2m 45s —— View job Claude finished the review
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
@claude review again. |
|
Claude finished @mrava87's task in 1m 7s —— View job Claude's review (updated)Todo list:
SummaryCommit 1. sigma = tuple(
standard_deviation_from_attenuation(f, 10) if f > 1 else 0
for f in factors
)Now correctly falls back to 2. 3. Magic number Minor remaining gap (not blocking)
Notes / limitations
Overall, the PR looks solid — both actionable findings from the previous review are addressed correctly, and the math/docs remain consistent. |

This PR changes the convention for the default
sigmainDownsample2Dchoosing a value where the frequency spectrum of the gaussian filter is -10dB at the new Nyquist frequency. The old convention was somehow empirical and not 'fixed' for different downsampling factors.