Skip to content

Commit a715847

Browse files
[cepstral.jl] Unnecessary checks removed
1 parent d9cf806 commit a715847

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/cepstral.jl

-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ end
1313

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

0 commit comments

Comments
 (0)