-
Notifications
You must be signed in to change notification settings - Fork 1
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
More flexible 2dclean areas. #94
Open
aewallwi
wants to merge
4
commits into
main
Choose a base branch
from
2d_filter_disjoint_rectangles
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I use the following comparison to ensure that the old and new versions of clean are the same when a single cleaning region is provided for both
I run this before the PR update.
I run this after the PR update
Then
|
aewallwi
force-pushed
the
2d_filter_disjoint_rectangles
branch
from
August 5, 2020 18:45
4c80a03
to
45103a4
Compare
aewallwi
force-pushed
the
2d_filter_disjoint_rectangles
branch
from
August 25, 2020 23:47
45103a4
to
af6c986
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #99 . This pull request changes how cleaning areas are calculated for 2d clean in a way that only affects multiple clean regions (it does not change the functionality for when single clean regions are provided which could break the API). This change allows for calculating more flexible regions.
_clean_filter
is provided a list of filter centers for each dimension and a list of corresponding filter region widths.Originally,
_clean_filter
would compute a vector along each dimension, set to one in each filter region. The overall filtering area A would be computed by taking the outer product of the two vectors, A = (a_0^0 + a_0^1, + a_0^2 ... + a_0^N-1) outer (a_1^0 + a_1^1 + ... a_1^(N-1) )I have changed this calculation to effectively computes the overall cleaning area, A as
A = (a_0^0 outer a_1^0) | (a_0^1 outer a_1^1) | ... U (a_0^N-1 outer a_1^N-1)
where | is bitwise or. With this system, one can reproduce areas from the original scheme but not vice versa so it is more flexible.
This scheme is also applied to the
'plus'
2d filtering mode which originally computed plus regions for every possible pair of time / frequency regions provided but now only computes plus regions for each pair provided (requires the number of time / frequency filter regions to be the same).