@Override public boolean pruneValues(double threshold){
  Map<Value,Double> newTable=new HashMap<Value,Double>();
  boolean changed=false;
  for (  Value row : table.keySet()) {
    double prob=table.get(row);
    if (prob >= threshold) {
      newTable.put(row,prob);
    }
 else {
      changed=true;
    }
  }
  if (changed) {
    table=InferenceUtils.normalise(newTable);
  }
  intervals=null;
  return changed;
}

@ Override public boolean pruneValues ( double threshold ) { Map < Value , Double > newTable = new HashMap < Value , Double > ( ) ; boolean changed = false ; for ( Value row : table . keySet ( ) ) { double prob = table . get ( row ) ; if ( prob >= threshold ) { newTable . put ( row , prob ) ; } else { changed = true ; } } if ( changed ) { table = InferenceUtils . normalise ( newTable ) ; } intervals = null ; return changed ; }
prunes all table values that have a probability lower than the threshold .
