-
Notifications
You must be signed in to change notification settings - Fork 145
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
Bugfix issue#851 #855
base: main
Are you sure you want to change the base?
Bugfix issue#851 #855
Conversation
In this implementation, phase is taken into account. The intensity is 0.5 at the edges.
@spranav1205 thanks! |
The version I have written (and tested 😭) assigns one if the impulse response lies on a sampling time plainly and 0.5 at the edge. I can write one where the next node (or the previous) is assigned based on how many ones and zeros lie in the bin (essentially the area right?). |
considering the area in each bin.
…ngray into bugfix-issue#851
Hey, Sorry for the delay. I have updated the code which now considers the area in each bin instead of using 0.5 directly for edge cases. In these tests, I have used dt as 4 The code considers the incomplete bins at either end and the complete bins, which are assigned one. Am I on the right track? If so I can continue testing and refining the code. Thanks! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #855 +/- ##
===========================================
- Coverage 95.98% 82.53% -13.46%
===========================================
Files 48 48
Lines 9686 9731 +45
===========================================
- Hits 9297 8031 -1266
- Misses 389 1700 +1311 ☔ View full report in Codecov by Sentry. |
Relevant Issue(s)/PR(s) #851
Textbook implementation of impulse response.
Edge cases are 0.5 and phase is taken into account.
The response maybe zero if the width doesn't fall on the sampling times, a warning can be issued for the same.
Eg.
start = 3 width = 5 dt = 4 = [0,1,0.5]
start = 4 width = 4 dt = 4 = [0,0.5,0.5]
start = 1 width = 3 dt = 4 = [0,0.5]
ps. the code has redundancies which I can remove once finalized