fit.cosh | R Documentation |
cosh
-functionsPerforms a correlated fit of a sum of several cosh
-functions
∑_i a_i \cosh(m_i t) to data generated with
bootstrap.effectivemass
. Requires the same input and produces
analogous output as fit.effectivemass. The fit itself is performed
by bootstrap.nlsfit.
fit.cosh(effMass, cf, t1, t2, useCov = FALSE, m.init, par, n.cosh = 2, adjust.n.cosh = FALSE, every, ...)
effMass |
An object of class |
cf |
An object of class |
t1 |
The fit range. If several correlators are fitted, this is
automatically replicated accordingly. The fit range is adjusted such that
|
t2 |
see t1 |
useCov |
Use the correlated chisquare. This works only for not too noisy data. |
m.init |
Initial guess of the effective mass, i.e. the smallest m_i. |
par |
Array of length |
n.cosh |
Number of |
adjust.n.cosh |
Only relevant, if |
every |
Fit only a part of the data points. Indices that are not
multiples of |
... |
Additional parameters passed to the fit function. But the fit function is fixed and does not accept any arguments, so it will just crash. Therefore, don't use this! |
An object with class coshfit
is returned. It contains all the
data of the input object effMass
or the cf
object as a member.
The following member objects are added:
t0
: the object returned by the optim
on the original data. The
format is as in par
.
t
: the bootstrap values of the results.
se
: errors calculated via bootstrap on the results.
ii
: the index array of data used in the fit.
invCovMatrix
: the inverse covariance matrix.
dof
: the degrees of freedom of the fit.
chisqr
: Chi squared value of the fit.
Qval
: p-value of the fit.
Johann Ostmeyer, ostmeyer@hiskp.uni-bonn.de
bootstrap.effectivemass
,
bootstrap.gevp
, invertCovMatrix
,
bootstrap.nlsfit
, fit.effectivemass
data(samplecf) samplecf <- bootstrap.cf(cf=samplecf, boot.R=99, boot.l=2, seed=1442556) effmass <- fit.cosh(bootstrap.effectivemass(cf=samplecf), t1=15, t2=23) summary(effmass) plot(effmass, ylim=c(0.14,0.15))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.