question: public void addSample ( Assignment sample ) { samples . add ( sample ) ; discreteCache = null ; continuousCache = null ; variables . addAll ( sample . getVariables ( ) ) ; }
target:  Adds a new sample to the distribution