Excited states are subtracted from the given correlation function and matching matrixfit. The fit is usually done on late time slices when the thermal states have decayed so much that they can be neglected. On the early time slices there are contributions which cannot be explained with a single cosh (or sinh) function. These are exactly the contributions that we do not want.
subtract.excitedstates(cf, mfit, from.samples = FALSE)
Correlation function of class cf
.
Fit result of class matrixfit
.
Whether to use existing bootstrap samples. If set to
TRUE
, the same operation will be applied to the bootstrap samples.
Otherwise the result will not contain bootstrap samples, even if the input
correlation function did.
A correlation function of class cf
which is computed from the old
correlation function
The correlation function is altered on the time slices which are earlier than the start of the fit interval. The correlator is replaced by the model function (cosh or sinh or exp) extrapolated until the first time slice. The deviations of the (bootstrap) samples from the mean value are kept.