Skip to content
Snippets Groups Projects
Commit 78e49502 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Small correction in DistributionHandler

parent cdccc141
No related branches found
No related tags found
No related merge requests found
...@@ -52,8 +52,8 @@ double DistributionHandler::setParameterValues(ParameterPool *p_parameter_pool, ...@@ -52,8 +52,8 @@ double DistributionHandler::setParameterValues(ParameterPool *p_parameter_pool,
"combinations"); "combinations");
} }
size_t n_distr = m_distributions.size(); size_t n_distr = m_distributions.size();
if (n_distr == 0) return 0.0;
double weight = 1.0; double weight = 1.0;
if (n_distr == 0) return weight;
for (size_t param_index=n_distr-1; ; --param_index) { for (size_t param_index=n_distr-1; ; --param_index) {
size_t remainder = index % m_distributions[param_index].getNbrSamples(); size_t remainder = index % m_distributions[param_index].getNbrSamples();
index /= m_distributions[param_index].getNbrSamples(); index /= m_distributions[param_index].getNbrSamples();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment