Skip to content

Commit

Permalink
[cepstral.jl] Unnecessary checks removed
Browse files Browse the repository at this point in the history
  • Loading branch information
shayandavoodii committed Mar 21, 2024
1 parent d9cf806 commit a715847
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/cepstral.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ end

function cepscoef(method::ARCepstral, tseries::AbstractVector, n::Integer)
α = fit_arima(tseries, method.p)
method.p == length(α) || ArgumentError("Length of coefficients must be equal to p") |> throw
c = similar(α, n)
for n_ 1:n
if n_==1
Expand Down Expand Up @@ -83,7 +82,6 @@ function ψfunc(
q::T,
k::T
) where {S<:AbstractFloat, T<:Integer}
p+q == length(coefs) || ArgumentError("Length of coefficients must be equal to p + q") |> throw
a = σ²/2π
numerator_ = 0.
denominator_ = 0.
Expand Down

0 comments on commit a715847

Please sign in to comment.