R/rtFromTMatrix.R

Defines functions tFromTMatrix rFromTMatrix

rFromTMatrix<- function(M,gamma0,gamma2){
  
  r<-((gamma0*M[1,1])+(gamma0*gamma2*M[1,2])-(M[2,1])-(gamma2*M[2,2]))/((gamma0*M[1,1])+(gamma0*gamma2*M[1,2])+(M[2,1])+(gamma2*M[2,2]))
  return(r)
  
}

tFromTMatrix<- function(M,gamma0,gamma2){
  
  t<-(2*gamma0)/((gamma0*M[1,1])+(gamma0*gamma2*M[1,2])+(M[2,1])+(gamma2*M[2,2]))
  return(t)
  
}
tjconstant/mlfilms documentation built on April 25, 2020, 3:24 p.m.