matrixfit | R Documentation |
Performs a factorising fit on a correlation matrix
matrixfit(cf, t1, t2, parlist, sym.vec, neg.vec, useCov = FALSE, model = "single", boot.fit = TRUE, fit.method = "optim", autoproceed = FALSE, every)
cf |
correlation matrix obtained with a call to |
t1 |
lower bound for the fitrange in time (t1,t2). Counting starts with 0. |
t2 |
upper bound for the fitrange in time (t1,t2). Counting starts with 0. |
parlist |
a two dimensional array of dimension 2 times number of correlators in cf. Every column assigns a pair of fit parameters to the corresponding correlator in cf. In case this is missing there are defaults provided for certain matrix sizes. |
sym.vec |
a vector of length number of correlators in cf indicating
whether the correlation function is a cosh, a sinh or an exponential.
Possible values are |
neg.vec |
a vector of length number of correlators in cf indicating whether the correlation function is to be multiplied globally with a minus sign. In case this is missing there are defaults provided for certain matrix sizes. |
useCov |
use correlated or uncorrelated chisquare. Default is
|
model |
Sets the fit model to be used in the fit. The default model
is |
boot.fit |
If set to |
fit.method |
Can be either |
autoproceed |
When the inversion of the variance-covariance matrix
fails, the default behaviour is to abort the fit. Setting this to
|
every |
Fit only a part of the data points. Indices that are not
multiples of |
The routine expects in cf$cf
a set of correlation functions. The
mapping of this linear construct to a matrix or a part of a matrix is
achieved via parlist
. The symmetry properties of the individual
correlation functions must be encoded in sym.vec
.
matrixfit
will fit to every correlator in cf$cf
a function
p_i p_j f(t). The indices i,j are determined from parlist
and f is either \cosh or \sinh, depending on
sym.vec
.
The inverse covariance matrix is computed using a singular value decomposition. If the sample size N is too small, only sqrt(N) eigenvalues of the matrix are kept exactly, while all others are replaced by the mean of the rest. This helps to reduce instabilities induced by too small eigenvalues of the covariance matrix.
returns an object of class matrixfit
with entries:
CF |
object of class cf which contains the mean correlation functions |
M |
inverse variance-covariance matrix for weighted Chi squared minimization |
L |
squre root of |
parind |
indices in the parameter vector used for the different matrix combinations |
sign.vec |
vector of signs |
ii |
vector of vector indices giving the columns of the correlation function arrays (CF above, say), which are contained in the fit range |
opt.res |
return value of the minimization (see ?optim) on the original data. |
t0 |
Result of the chisqr fit on the original data.
|
t |
Bootstrap
samples of the |
se |
Bootstrap estimate of
standard error for all parameters. |
useCov |
whether covariances in the data were taken into account |
invCovMatrix |
inverse of covariance matrix or inverse variance weighted if useCov=FALSE |
Qval |
real number between 0 and 1 giving the "quality" of the fit |
chisqr |
total Chi squared of the fit |
dof |
fit degrees of freedom |
mSize |
integer size of the matrix which was fitted |
cf |
object of type cf which contains, amongst other objects, cf$cf which is a concatenated array of raw correlation functions where each row is one of N observations and there are mSize*Time columns (see ?extract.obs) |
boot.R |
number of bootstrap samples |
boot.l |
block size for blocked bootstrap |
t1 |
beginning of fit range |
t2 |
end of fit range |
parlist |
array of parameter combinations for the matrix fit |
sym.vec |
vector of strings indicating the functional form of correlation functions which were fitted |
seed |
RNG seed for bootstrap procedure |
model |
see input. |
fit.method |
see input. |
reference_time |
The GEVP reference time for the principal correlator model |
Carsten Urbach, curbach@gmx.de
C. Michael, hep-lat/9412087hep-lat/9412087
cf
, bootstrap.cf
data(samplecf) samplecf <- bootstrap.cf(cf=samplecf, boot.R=99, boot.l=2, seed=1442556) fitres <- matrixfit(cf=samplecf, t1=16, t2=24, useCov=FALSE, parlist=array(c(1,1), dim=c(2,1)), sym.vec=c("cosh"), fit.method="lm") summary(fitres) plot(fitres)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.