Skip to content

Fix lower amplitude bound: use nearest-edge distance, not nearest vertex#1

Open
tomkoenecke wants to merge 1 commit into
marcodeangelis:mainfrom
tomkoenecke:fix-amplitude-lower-bound
Open

Fix lower amplitude bound: use nearest-edge distance, not nearest vertex#1
tomkoenecke wants to merge 1 commit into
marcodeangelis:mainfrom
tomkoenecke:fix-amplitude-lower-bound

Conversation

@tomkoenecke

Copy link
Copy Markdown

Hi Marco,

I noticed in compute_amplitude_bounds_givenfrequency: when the origin is
outside the convex hull, the lower amplitude bound used the nearest hull vertex
(abs(convhull[ch_min])), but the true minimum |z| is the distance to the nearest
edge. So the lower bound could sit a bit too high.

For larger FFTs the gap is negligible, it only really shows up with few / very uneven inputs.

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.

1 participant