Skip to content

Commit

Permalink
update for v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySarnoff authored Aug 1, 2017
1 parent 9dfa1c4 commit 519e70b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/running.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ for (F,R) in [(:minimum, :roll_minimum), (:maximum, :roll_maximum),
(:std, :roll_std), (:var, :roll_var), (:mad, :roll_mad),
(:sum, :roll_sum), (:prod, :roll_prod), (:norm, :roll_norm)]
@eval begin
$R{T}(span::Int, data::Vector{T}) = rolling($F, span, data)
$R{T}(span::Int, weights::Vector{T}, data::Vector{T}) = rolling($F, span, weights, data)
$R{T}(::Type{FILL_FIRST}, span::Int, data::Vector{T}) =
$R(span::Int, data::Vector{T}) where {T} = rolling($F, span, data)
$R(span::Int, weights::Vector{T}, data::Vector{T}) where {T} = rolling($F, span, weights, data)
$R(::Type{FILL_FIRST}, span::Int, data::Vector{T}) where {T} =
rolling(FILL_FIRST, $F, span, data)
$R{T}(::Type{FILL_LAST}, span::Int, data::Vector{T}) =
$R(::Type{FILL_LAST}, span::Int, data::Vector{T}) where {T} =
rolling(FILL_LAST, $F, span, data)
$R{T}(::Type{FILL_BOTH}, span::Int, data::Vector{T}) =
$R(::Type{FILL_BOTH}, span::Int, data::Vector{T}) where {T} =
rolling(FILL_BOTH, $F, span, data)
$R{T}(::Type{FILL_FIRST}, span::Int, filler::T, data::Vector{T}) =
$R(::Type{FILL_FIRST}, span::Int, filler::T, data::Vector{T}) where {T} =
rolling(FILL_FIRST, $F, span, filler, data)
$R{T}(::Type{FILL_LAST}, span::Int, filler::T, data::Vector{T}) =
$R(::Type{FILL_LAST}, span::Int, filler::T, data::Vector{T}) where {T} =
rolling(FILL_LAST, $F, span, filler, data)
$R{T}(::Type{FILL_BOTH}, span::Int, filler::T, data::Vector{T}) =
$R(::Type{FILL_BOTH}, span::Int, filler::T, data::Vector{T}) where {T} =
rolling(FILL_BOTH, $F, span, filler, data)
$R{T}(::Type{TAPER_FIRST}, span::Int, tapered_span::Int, data::Vector{T}) =
$R(::Type{TAPER_FIRST}, span::Int, tapered_span::Int, data::Vector{T}) where {T} =
rolling(TAPER_FIRST, $F, span, tapered_span, data)
$R{T}(::Type{TAPER_LAST}, span::Int, tapered_span::Int, data::Vector{T}) =
$R(::Type{TAPER_LAST}, span::Int, tapered_span::Int, data::Vector{T}) where {T} =
rolling(TAPER_LAST, $F, span, tapered_span, data)
$R{T}(::Type{TAPER_BOTH}, span::Int, tapered_span::Int, data::Vector{T}) =
$R(::Type{TAPER_BOTH}, span::Int, tapered_span::Int, data::Vector{T}) where {T} =
rolling(TAPER_BOTH, $F, span, tapered_span, data)
end
end

0 comments on commit 519e70b

Please sign in to comment.