Skip to content

Commit

Permalink
Update ar.jl
Browse files Browse the repository at this point in the history
simplify ols
  • Loading branch information
viraltux authored Aug 15, 2021
1 parent ffffdb9 commit ee8805a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function ar_ols(x::AbstractArray{T},
W = Array{T,2}(undef,(or*m+1,m))
for i in 1:m
Xi,Yi = fixΦ(X,Y,i,dΦ0,dΦ)
dW = (Xi'*Xi)\(Xi'*Yi)
dW = Xi\Yi
W[:,i] = fixW(dW,i,dΦ0,dΦ)
end

Expand Down

0 comments on commit ee8805a

Please sign in to comment.