code: public boolean containsBadValues() {
      	for(int i=0; i<values.length; i++) {
      		if(s.isNaN(values[i])) {
      			return true;
      		}
      		if (s.lt(values[i], s.zero()) || values[i] == s.posInf()) {
      			return true;
      		}
      	}
      	return false;
      }
docs: TODO: Move this to BeliefPropagation.java.