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

Update pvalue(). ADerrors.cov_sym now uses the wpm provided by user

parent ba065dc5
......@@ -73,7 +73,7 @@ function fit_routine(model::Function,
xdata::AbstractArray{<:Real},
ydata::AbstractArray{uwreal},
npar::Int64;
wpm::Union{Dict{Int64,Vector{Float64}},Dict{String,Vector{Float64}}}=Dict{Int64,Vector{Float64}}(),
wpm::Union{Dict{Int64,Vector{Float64}}, Dict{String,Vector{Float64}}} = Dict{Int64,Vector{Float64}}(),
corr::Bool = true,
W::AbstractArray{Float64}=Vector{Float64}(),
guess::AbstractVector{Float64} = fill(0.5,npar),
......
......@@ -128,7 +128,7 @@ function pvalue(chisq::Function,
_Px
end
length(C)!=0 || (C=ADerrors.cov_sym(data))
length(C)!=0 || (C=ADerrors.cov_sym(data,wpm))
nu = let
aux = sqrt(C)
......
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