src/fisher.cpp
// Extracts the covariance matrix for a given branch from the full covariance matrix.
Extracts the covariance matrix for a given branch from the full covariance matrix.
Extracts the covariance matrix for a given branch from the full covariance matrix .
void branch_covariance_matrix(Model &Mod, Array2 &Covfull, long b, Array2 &Covbr) {
  long i,j;
  Covbr.resize(Mod.df);
  for(i=0; i < Mod.df; i++) {
    Covbr[i].resize(Mod.df);
    for(j=0; j< Mod.df; j++) {
      Covbr[i][j] = Covfull[Mod.df*b + i][Mod.df*b + j];
    }
  }
}
void branch_covariance_matrix ( Model & Mod , Array2 & Covfull , long b , Array2 & Covbr ) { long i , j ; Covbr . resize ( Mod . df ) ; for ( i = 0 ; i < Mod . df ; i ++ ) { Covbr [ i ] . resize ( Mod . df ) ; for ( j = 0 ; j < Mod . df ; j ++ ) { Covbr [ i ] [ j ] = Covfull [ Mod . df * b + i ] [ Mod . df * b + j ] ; } } }
Extracts the covariance matrix for a given branch from the full covariance matrix.
Extracts the covariance matrix for a given branch from the full covariance matrix .