Skip to content

Commit

Permalink
be more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
Shunsuke-Hori committed Mar 27, 2018
1 parent a8eabcc commit 7ceacad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filter.jl
Expand Up @@ -77,7 +77,7 @@ Note: For seasonal data, it's desirable for `p` and `h` to be integer multiples
- `y_cycle::Vector` : cyclical component
- `y_trend::Vector` : trend component
"""
function hamilton_filter(y::AbstractVector, h::Integer, p::Integer)
function hamilton_filter(y::Vector, h::Integer, p::Integer)
T = length(y)
y_cycle = fill(NaN, T)

Expand Down Expand Up @@ -132,7 +132,7 @@ Note: For seasonal data, it's desirable for `h` to be an integer multiple
- `y_cycle::Vector` : cyclical component
- `y_trend::Vector` : trend component
"""
function hamilton_filter(y::AbstractVector, h::Integer)
function hamilton_filter(y::Vector, h::Integer)
T = length(y)
y_cycle = fill(NaN, T)
y_cycle[h+1:T] = y[h+1:T] - y[1:T-h]
Expand Down

0 comments on commit 7ceacad

Please sign in to comment.