eigen_system {oHMMed} | R Documentation |
Calculate Eigenvalues and Eigenvectors
Description
This helper function returns the eigenvalues in lambda and the left and right eigenvectors in forwards and backwards
Usage
eigen_system(mat)
Arguments
mat |
(matrix) a square matrix |
Value
a list with three elements:
-
lambda
: eigenvalues -
forwards
: left eigenvector -
backwards
: right eigenvector
Examples
mat_T0 <- rbind(c(1-0.01,0.01,0),
c(0.01,1-0.02,0.01),
c(0,0.01,1-0.01))
eigen_system(mat_T0)
[Package oHMMed version 1.0.2 Index]