-
Notifications
You must be signed in to change notification settings - Fork 109
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
extend lpc
to complex inputs, other fixes
#517
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #517 +/- ##
==========================================
+ Coverage 97.49% 97.56% +0.06%
==========================================
Files 18 18
Lines 3078 3121 +43
==========================================
+ Hits 3001 3045 +44
+ Misses 77 76 -1 ☔ View full report in Codecov by Sentry. |
- use rev_buf to eliminate allocs as much as possible - changed multiple assignment so that `@views` macro can be used on outer loop
- taking reference from PR 171 - separate `levinson` and `arburg` from `lpc` and export - reflection coefficients - `p::Integer`
- not sure if arburg handles complex arguments, but just in case.
- add test for complex - error for levinson is weirdly high - test errors more often than original, cannot figure out why
extra keyword argument for scaling in xcorr, fixes large prediction_error in levinson
1.0 doesn't support `CartesianIndices` with `StepRange`?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be a matter of personal taste, but I do prefer explicit return
s in long-form functions.
Co-authored-by: Martin Holters <[email protected]>
Didn't realize |
- removed redundant type parameters from drafting - add ! to mark possibly mutating function - note to write an autocorr function
Could you expand on that? |
_normalize!(x::AbstractArray{<:Integer}, sz::Int) = (x ./ sz) I was referring to this, which is needed because an array of integers can't be |
levinson
by scalinglevinson
now has original O(n) space complexityarburg
andlevinson
can now handle complex inputs