Exemplo n.º 1
0
 private double sumValues(List ptlList, Assignment assn) {
   double sum = 0;
   for (Iterator it = ptlList.iterator(); it.hasNext(); ) {
     Factor ptl = (Factor) it.next();
     sum += ptl.logValue(assn);
   }
   return sum;
 }