Skip to content

Commit 4cdb286

Browse files
authored
Update fields in fit!
1 parent 694b366 commit 4cdb286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SmoothingSplines.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function fit!{T<:LAPACKFloat}(spl::SmoothingSpline{T})
6666
end
6767

6868
function fit!{T<:LAPACKFloat}(spl::SmoothingSpline{T}, Y::AbstractVector{T})
69-
spl.Y = Y[spl.idx]
69+
spl.Yorig = Y[spl.Xrank]
7070
fit!(spl)
7171
end
7272

0 commit comments

Comments
 (0)