Learn R Programming

hadron (version 3.1.2)

symmetrise.cf: Average backward and forward-dominated parts of the correlation function

Description

When a correlation function is symmetric or anti-symmetric in time, this symmetry can be exploited by averaging the part from source-sink separation 1 to cf$Time/2 with the part from cf$Time/2+1 to cf$Time-1 in order to improve statistical precision. This function reduces the number of time slices in a cf object from cf$Time to cf$Time/2+1 by performing this averaging.

Usage

symmetrise.cf(cf, sym.vec = c(1))

Arguments

cf

Object of type cf.

sym.vec

Integer or integer vector of length cf$nrObs giving the time-reflection symmetry (1 for symmetric, -1 for anti-symmetric) of the observable in question.

Value

Returns an object of class cf, which is the symmetrised version of the input cf object.