code: private EdgeScores getLogOddsRatios(VarTensor[] inMsgs) {  
          EdgeScores es = new EdgeScores(n, Double.NEGATIVE_INFINITY);
          Algebra s = inMsgs[0].getAlgebra();
          // Compute the odds ratios of the messages for each edge in the tree.
          for (VarTensor inMsg : inMsgs) {
              LinkVar link = (LinkVar) inMsg.getVars().get(0);
              double logOdds = s.toLogProb(inMsg.getValue(LinkVar.TRUE)) - s.toLogProb(inMsg.getValue(LinkVar.FALSE));            
              if (link.getParent() == -1) {
                  es.root[link.getChild()] = logOdds;
              } else {
                  es.child[link.getParent()][link.getChild()] = logOdds;
              }
          }
          return es;
      }
docs: Computes the log odds ratio for each edge. w_i = \mu_i(1) / \mu_i(0)