Skip to content

Commit

Permalink
[cepstral.jl] A redundant check was removed 🧹
Browse files Browse the repository at this point in the history
  • Loading branch information
shayandavoodii committed Mar 12, 2024
1 parent 3a0b3cf commit 555283a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cepstral.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ struct ARMACepstral{S<:AbstractFloat, T<:Integer} <: CepstralCoeffModel
end

function cepscoef(method::ARCepstral, tseries::AbstractVector, n::Integer)
n>0 || ArgumentError("n must be positive") |> throw
α = fit_arima(tseries, method.p)
method.p == length(α) || ArgumentError("Length of coefficients must be equal to p") |> throw
c = similar(α, n)
Expand Down

0 comments on commit 555283a

Please sign in to comment.