Commit a5e1dfd1 authored by Antonino D'Anna's avatar Antonino D'Anna

bug-fix

parent 0517dc10
......@@ -1282,7 +1282,7 @@ It returns a NamedTuple with names:
- `:pval`: pvalue
"""
function fit_routine(model::Function,
xdata::Array{<:Real},
xdata::AbstractArray{<:Real},
ydata::Array{uwreal},
npar::Int64;
wpm::Union{Dict{Int64,Vector{Float64}},Dict{String,Vector{Float64}}}=Dict{Int64,Vector{Float64}}(),
......@@ -1290,7 +1290,7 @@ function fit_routine(model::Function,
W::AbstractVecOrMat{Float64}=Vector{Float64}(),
guess::Vector{Float64} = fill(0.5,npar),
logfile = nothing,
C::AbstractMatrix{Float64} = Matrix{Float64}());
C::AbstractMatrix{Float64} = Matrix{Float64}(undef,0,0));
nobs = length(ydata)
if length(xdata)!=nobs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment