diff --git a/include/barry/model-meat.hpp b/include/barry/model-meat.hpp index aa43b34ab..00537e396 100644 --- a/include/barry/model-meat.hpp +++ b/include/barry/model-meat.hpp @@ -226,7 +226,10 @@ inline void Model -1) + params_last[i] = params; size_t n_params = params.size(); pset_probs.resize( @@ -1402,10 +1405,7 @@ Model::sample( // Updating the current pset if (pset_probs.size() == 0u) - { update_pset_probs(params, 1u, static_cast(a)); - params_last[a] = params; - } // Sampling an array size_t j = 0u; @@ -1423,7 +1423,6 @@ Model::sample( } else { update_pset_probs(params, 1u, static_cast(a)); - params_last[a] = params; const double * probs = &pset_probs[pset_locations[a]]; while (cumprob < r)