function comp_energy(tot11::Array{Array{juobs.Corr}},tot12::Array{Array{juobs.Corr}},tot13::Array{Array{juobs.Corr}},tot22::Array{Array{juobs.Corr}},tot33::Array{Array{juobs.Corr}},tot23::Array{Array{juobs.Corr}},evec::Bool=false;tnot::Int64=2)
...
...
@@ -160,12 +160,12 @@ function comp_energy(tot11::Array{Array{juobs.Corr}}, tot12::Array{Array{juobs.C
Computes decay constant using the PCVC relation for twisted mass fermions. The decay constant is computed in the plateau `plat`.
Correlator can be passed as an `Corr` struct or `Vector{uwreal}`. If it is passed as a uwreal vector, vector of twisted masses `mu` and source position `y0`
must be specified.
The flags `pl` and `data` allow to show the plots and return data as an extra result.
**The method assumes that the source is in the bulk.**
**The method extract the matrix element assuming that the source is in the bulk. **
**If left and right correlators are included in the input. The result is computed with a ratio that cancels boundary effects:**
`` R = \sqrt{f_P(x_0, y_0) * f_P(x_0, T - 1 - y_0) / f_P(T - 1 - y_0, y_0)}``
```@example
data = read_mesons(path, "G5", "G5")
corr_pp = corr_obs.(data, L=32)
m = meff(corr_pp[1], [50, 60], pl=false)
f = dec_const_pcvc(corr_pp[1], [50, 60], m, pl=false)
#left and right correlators
f_ratio = dec_const_pcvc(ppL, ppR, [50, 60], m)
```
"""
function dec_const_pcvc(corr::Vector{uwreal},plat::Vector{Int64},m::uwreal,mu::Vector{Float64},y0::Int64;pl::Bool=true,data::Bool=false,
...
...
@@ -340,23 +413,18 @@ function dec_const_pcvc(corr::Vector{uwreal}, plat::Vector{Int64}, m::uwreal, mu
function dec_const_pcvc(ppL::Vector{uwreal},ppR::Vector{uwreal},plat::Vector{Int64},m::uwreal,mu::Vector{Float64},y0::Int64;pl::Bool=true,data::Bool=false,
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;info::Bool=false,wpm::Union{Dict{Int64,Vector{Float64}},Dict{String,Vector{Float64}},Nothing}=nothing,correlated_fit::Bool=false)
function global_fit_routine(models::Vector{Function},xdata::Vector{Array{Float64,1}},ydata::Vector{Array{uwreal,1}},n_par::Int64;guess_param::Vector{Float64}=fill(0.5,n_par),log::Bool=true,wpm::Union{Dict{Int64,Vector{Float64}},Dict{String,Vector{Float64}},Nothing}=nothing)