Skip to content

Commit

Permalink
Update loess.jl
Browse files Browse the repository at this point in the history
update ols
  • Loading branch information
viraltux authored Aug 15, 2021
1 parent ee8805a commit 6827f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loess.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function ghat(x::T;
A = @. A*(w*rho)
b = @. b*(w*rho)

lsq_x = (A'*A)\(A'*b)
lsq_x = A\b

d == 1 ? [x,1.0]'*lsq_x : [x^2.0,x,1.0]'*lsq_x

Expand Down

0 comments on commit 6827f90

Please sign in to comment.