Commit 8581f735 authored by Javier's avatar Javier

small bug fixed (lin_fit)

parent f31f86ab
......@@ -83,7 +83,7 @@ function lin_fit(x::Vector{Float64}, y::Vector{uwreal})
par = lin_fit(x, value.(y), err.(y))
chisq(p, d) = sum((d .- p[1] .- p[2].*x).^2 ./ err.(y) .^2)
(fitp, csqexp) = fit_error(chisq, value.(par), y)
(fitp, csqexp) = fit_error(chisq, par, y)
return (fitp, csqexp)
end
......
......@@ -104,14 +104,14 @@ mutable struct CData
vcfg::Array{Int32}
re_data::Array{Float64}
im_data::Array{Float64}
id::Int
id::Int64
CData(a, b, c, d, e) = new(a, b, c, d, e)
end
Base.copy(a::CData) = CData(a.header, a.vcfg, a.re_data, a.im_data, a.id)
mutable struct Corr
obs::Union{Vector{uwreal}, uwreal}
obs::Vector{uwreal}
mu::Vector{Float64}
gamma::Vector{String}
y0::Int64
......
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