Learn R Programming

hadron (version 3.1.2)

weight.cf: Weight a correlation function

Description

Weights a correlation function with the given energy difference \(\Delta E\) such that the function is first multiplied with \(\exp(\Delta E t) + c \exp(\Delta E \cdot (Time - t)\).

Usage

weight.cf(cf, energy_difference_val, energy_difference_boot, cosh_factor,
  offset = 0, inverse = FALSE)

Arguments

cf

cf_orig and possibly cf_boot object.

energy_difference_val

numeric. A single energy value \(\Delta E\) for the weighting.

energy_difference_boot

numeric vector. Samples for the energy difference value.

cosh_factor

integer, either +1 or -1. Determines the sign $c$ in the weight factor.

offset

integer. Offset for the time $t$, needed for the reweighting after a shift.

inverse

boolean. If TRUE apply inverse weight.

Value

Returns an object of class cf, see cf.