public void removeVariable(String varId){
  variables.remove(varId);
  discreteCache=null;
  continuousCache=null;
  for (  Assignment s : samples) {
    s.removePair(varId);
  }
}

public void removeVariable ( String varId ) { variables . remove ( varId ) ; discreteCache = null ; continuousCache = null ; for ( Assignment s : samples ) { s . removePair ( varId ) ; } }
removes a particular variable from the sampled assignments
