Learn R Programming

hadron (version 3.1.2)

gevp2cf: Extracts a principle correlator from a GEVEP

Description

Extracts a principle correlator from a GEVP and converts it into an object of class cf

Usage

gevp2cf(gevp, id = 1)

Arguments

gevp

An object returned by bootstrap.gevp.

id

The index of the principal correlator to extract.

Value

An object of class cf, which contains bootstrap samples already. So a call to bootstrap.cf is neither needed nor possible. It can be treated further by bootstrap.effectivemass or matrixfit to extract a mass value.

See Also

gevp, matrixfit, bootstrap.effectivemass

Examples

Run this code
# NOT RUN {
data(correlatormatrix)
## bootstrap the correlator matrix
correlatormatrix <- bootstrap.cf(correlatormatrix, boot.R=99, boot.l=1, seed=132435)
## solve the GEVP
t0 <- 4
correlatormatrix.gevp <- bootstrap.gevp(cf=correlatormatrix, t0=t0, element.order=c(1,2,3,4))
## extract the ground state and plot
pc1 <- gevp2cf(gevp=correlatormatrix.gevp, id=1)
plot(pc1, log="y")

# }

Run the code above in your browser using DataLab