Open
Conversation
Collaborator
Author
|
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 |
4c80a03 to
45103a4
Compare
45103a4 to
af6c986
Compare
This file contains hidden or 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
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_filteris provided a list of filter centers for each dimension and a list of corresponding filter region widths.Originally,
_clean_filterwould 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).