From 6827f904b9d197f5dcc27e8507931d586a37b968 Mon Sep 17 00:00:00 2001 From: Fran Urbano Date: Sun, 15 Aug 2021 09:26:07 +0200 Subject: [PATCH] Update loess.jl update ols --- src/loess.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loess.jl b/src/loess.jl index 0bc17c5..c46ae2e 100644 --- a/src/loess.jl +++ b/src/loess.jl @@ -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