Skip to content

Commit

Permalink
forgot abs
Browse files Browse the repository at this point in the history
  • Loading branch information
wheeheee committed Feb 6, 2024
1 parent 60e7b0c commit c52257e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lpc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ the recursion relation as noted in [^Vos], in turn referenced from [^Andersen].
"""
function arburg(x::AbstractVector{T}, p::Integer) where T<:Number
# Initialize prediction error with the variance of the signal
unnormed_err = dot(x, x)
unnormed_err = abs(dot(x, x))
prediction_err = unnormed_err / length(x)
R = typeof(prediction_err)
F = promote_type(R, Base.promote_union(T))
Expand Down

0 comments on commit c52257e

Please sign in to comment.