We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The loess function doesn't accept integer input:
loess
julia> using Loess julia> x = [1, 2, 3, 4]; julia> y = [1.0, 2.0, 3.0, 4.0]; julia> model = loess(x, y, span = 0.33); ERROR: MethodError: no method matching loess(::Array{Int64,1}, ::Array{Float64,1}; span=0.25) Closest candidates are: loess(::AbstractArray{T<:AbstractFloat,2}, ::AbstractArray{T<:AbstractFloat,1}; normalize, span, degree) where T<:AbstractFloat at /home/jf/.julia/packages/Loess/TaYdb/src/Loess.jl:42 loess(::AbstractArray{T<:AbstractFloat,1}, ::AbstractArray{T<:AbstractFloat,1}; normalize, span, degree) where T<:AbstractFloat at /home/jf/.julia/packages/Loess/TaYdb/src/Loess.jl:110 Stacktrace: [1] top-level scope at none:0
The error goes away if x is float.
x
The text was updated successfully, but these errors were encountered:
Relax type constraints in loess signature
e6c112a
Fixes #27
Successfully merging a pull request may close this issue.
The
loess
function doesn't accept integer input:The error goes away if
x
is float.The text was updated successfully, but these errors were encountered: