You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/common.jl
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,7 @@ the variance-covariance matrix.)
107
107
108
108
For fitting with a large degree, the Vandermonde matrix is exponentially ill-conditioned. The [`ArnoldiFit`](@ref) type introduces an Arnoldi orthogonalization that fixes this problem.
109
109
110
+
110
111
"""
111
112
functionfit(P::Type{<:AbstractPolynomial},
112
113
x::AbstractVector{T},
@@ -141,7 +142,7 @@ fit(x::AbstractVector,
141
142
function_fit(P::Type{<:AbstractPolynomial},
142
143
x::AbstractVector{T},
143
144
y::AbstractVector{T},
144
-
deg::Integer=length(x) -1;
145
+
deg =length(x) -1;
145
146
weights =nothing,
146
147
var =:x,) where {T}
147
148
x =mapdomain(P, x)
@@ -152,7 +153,17 @@ function _fit(P::Type{<:AbstractPolynomial},
0 commit comments