Closed flipdazed closed 8 years ago
ADK Measurement of autocorrelations for $\langle\phi^2\rangle$ in one-dimensional free field theory for a single (leapfrog) integrator step as a function of the correlation length $\xi = 1/m$ and the momentum-mixing parameter $\theta$
first attempt at autocorrelation function
This is the autocorrelation of <x>
as I got confused by the notation when on a coffee downer just before tea time
Correction to the formula: Implicitly assuming <x> = 0
by using the formula:
self.acorr = (shifted*self.samples)[:n-separation] # indexing the 1st index for samples
# ravel() just flattens averything into one dimension
# rather than averaging over each lattice sample and averaging over
# all samples I jsut average the lot saving a calculation
return self.acorr.ravel().mean()
Note: should change getTwoPoint()
to have similar functionality as getAutocorr()
and incorporate c_fn = np.asarray([c.getTwoPoint(separation=i) for i in range(c_len)])
from corr1d_x2.py
into correlations/corr.py
no point comparing to theory as it is off-topic and it is quite non-trivial to calculate - the face that it behaves as expected is fine and can be verified readily by the integrated autocorrelations
Aim Measure autocorrelations : A function of each lattice point varying with number of HMC update steps
Implementation
c_len
theta