code: private void setOutMsgs(VarTensor outMsg, SpanVar span, double outMsgTrue, double outMsgFalse) {
          
          // Set the outgoing messages.
          Algebra s = outMsg.getAlgebra();
          outMsg.setValue(SpanVar.FALSE, s.fromLogProb(outMsgFalse));
          outMsg.setValue(SpanVar.TRUE, s.fromLogProb(outMsgTrue));
                  
          if (log.isTraceEnabled()) {
              log.trace(String.format("outMsgTrue: %s = %.2f", span.getName(), outMsg.getValue(LinkVar.TRUE)));
              log.trace(String.format("outMsgFalse: %s = %.2f", span.getName(), outMsg.getValue(LinkVar.FALSE)));
          }
          
          assert !outMsg.containsBadValues() : "message = " + outMsg;
      }
docs: Sets the outgoing messages.