Skip to content

Commit

Permalink
[cepstral.jl] Minor code refactoring 🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
shayandavoodii committed Mar 11, 2024
1 parent 49b4884 commit ce9972d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/cepstral.jl
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
abstract type CepstralCoeffModel end

struct ARCepstral{T} <: CepstralCoeffModel
struct ARCepstral{T<:Integer} <: CepstralCoeffModel
p::T
function ARCepstral(p::T) where T<:Integer
new{T}(p)
end
end

struct RealCepstral <: CepstralCoeffModel end

struct ARMACepstral{S, T} <: CepstralCoeffModel
struct ARMACepstral{S<:AbstractFloat, T<:Integer} <: CepstralCoeffModel
σ²::S
order::NTuple{2, T}
function ARMACepstral(σ²::S, order::NTuple{2, T}) where {S<:AbstractFloat, T<:Integer}
new{S, T}(σ², order)
end
end

function cepscoef(method::ARCepstral, tseries::AbstractVector, n::Integer)
Expand Down

0 comments on commit ce9972d

Please sign in to comment.