@@ -108,16 +108,16 @@ The output is not normalized. See [`autocor`](@ref) for a function with normaliz
108
108
"""
109
109
function autocov (x:: AbstractVector , lags:: AbstractVector{<:Integer} ; demean:: Bool = true )
110
110
out = Vector {float(eltype(x))} (undef, length (lags))
111
- autocov! (out, x, lags; demean)
111
+ autocov! (out, x, lags; demean= demean )
112
112
end
113
113
114
114
function autocov (x:: AbstractMatrix , lags:: AbstractVector{<:Integer} ; demean:: Bool = true )
115
115
out = Matrix {float(eltype(x))} (undef, length (lags), size (x,2 ))
116
- autocov! (out, x, lags; demean)
116
+ autocov! (out, x, lags; demean= demean )
117
117
end
118
118
119
119
autocov (x:: AbstractVecOrMat ; demean:: Bool = true ) =
120
- autocov (x, default_autolags (size (x,1 )); demean)
120
+ autocov (x, default_autolags (size (x,1 )); demean= demean )
121
121
122
122
# # autocor
123
123
@@ -155,7 +155,7 @@ function autocor!(
155
155
T = typeof (zero (eltype (x))/ 1 )
156
156
z = Vector {T} (undef, size (x, 1 ))
157
157
for n in 1 : size (x, 2 )
158
- autocor! (view (r, :, n), view (x, :, n), lags, z; demean)
158
+ autocor! (view (r, :, n), view (x, :, n), lags, z; demean= demean )
159
159
end
160
160
return r
161
161
end
@@ -180,16 +180,16 @@ autocorrelation is 1. See [`autocov`](@ref) for the unnormalized form.
180
180
"""
181
181
function autocor (x:: AbstractVector , lags:: AbstractVector{<:Integer} ; demean:: Bool = true )
182
182
out = Vector {float(eltype(x))} (undef, length (lags))
183
- autocor! (out, x, lags; demean)
183
+ autocor! (out, x, lags; demean= demean )
184
184
end
185
185
186
186
function autocor (x:: AbstractMatrix , lags:: AbstractVector{<:Integer} ; demean:: Bool = true )
187
187
out = Matrix {float(eltype(x))} (undef, length (lags), size (x,2 ))
188
- autocor! (out, x, lags; demean)
188
+ autocor! (out, x, lags; demean= demean )
189
189
end
190
190
191
191
autocor (x:: AbstractVecOrMat ; demean:: Bool = true ) =
192
- autocor (x, default_autolags (size (x,1 )); demean)
192
+ autocor (x, default_autolags (size (x,1 )); demean= demean )
193
193
194
194
195
195
# ######################################
0 commit comments