Learn R Programming

CGE (version 0.3.3)

PF_eig: P-F (i.e. Perron-Frobenius) Eigenvalue and Eigenvector

Description

This function computes the P-F (i.e. Perron-Frobenius) eigenvalue and eigenvector of an indecomposable nonnegative square matrix.

Usage

PF_eig(M)

Arguments

M

an indecomposable nonnegative square matrix.

Value

PF_eig returns a list containing the following components:

val

the P-F eigenvalue of M.

vec

the normalized P-F eigenvector of M.

References

Horn, R. A., Johnson, C. R. (2012, ISBN: 0521548233) Matrix Analysis. Cambridge University Press.

Examples

Run this code
# NOT RUN {
M<-matrix(c(0.5,1,
            1,  0),2,2,TRUE)
PF_eig(M)
# }

Run the code above in your browser using DataLab