@@ -155,6 +155,7 @@ The method return an array upar with the best fit parameters with their errors.
...
@@ -155,6 +155,7 @@ The method return an array upar with the best fit parameters with their errors.
fit_routine(model, ydata, param=3)
fit_routine(model, ydata, param=3)
"""
"""
function fit_routine(model::Function,xdata::Array{<:Real},ydata::Array{uwreal},param::Int64=3;wpm::Union{Dict{Int64,Vector{Float64}},Dict{String,Vector{Float64}},Nothing}=nothing)
function fit_routine(model::Function,xdata::Array{<:Real},ydata::Array{uwreal},param::Int64=3;wpm::Union{Dict{Int64,Vector{Float64}},Dict{String,Vector{Float64}},Nothing}=nothing)
uwerr.(ydata)
yval=value.(ydata)
yval=value.(ydata)
yer=err.(ydata)
yer=err.(ydata)
chisq=gen_chisq(model,xdata,yer)
chisq=gen_chisq(model,xdata,yer)
...
@@ -172,7 +173,6 @@ function gen_chisq(f::Function, x::Array{<:Real}, err::Vector{Float64})
...
@@ -172,7 +173,6 @@ function gen_chisq(f::Function, x::Array{<:Real}, err::Vector{Float64})