Allow resampling with smaller number of models
Allow resampling with smaller number of models

Previously, the number of resampled models was equal to the number
of models in the full chain. This commit allows the number of
resampled models to be defined independently of the number of
iterations.

mherman09/Hdef,mherman09/Hdef,mherman09/Hdef