Skip to content

Commit

Permalink
MetaI: set new Dsigma after new sigma_max
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocamilloni committed Jun 27, 2020
1 parent df5d276 commit 2ab5a63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/isdb/Metainference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,10 @@ void Metainference::get_sigma_mean(const unsigned iselect, const double fact, co
if(optimized_step_==N_optimized_step_) {
double isteps = 1./static_cast<double>(optimized_step_);
sigmamax_opt_done_=true;
for(unsigned i=0; i<sigma_max_.size(); i++) sigma_max_[i]=sigma_max_est_[i]*isteps*sqrt(dnrep);
for(unsigned i=0; i<sigma_max_.size(); i++) {
sigma_max_[i]=sigma_max_est_[i]*isteps*sqrt(dnrep);
Dsigma_[i] = 0.05*(sigma_max_[i] - sigma_min_[i]);
}
}
}
optimized_step_++;
Expand Down
5 changes: 4 additions & 1 deletion src/isdb/MetainferenceBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,10 @@ void MetainferenceBase::get_sigma_mean(const double fact, const double var_fact,
if(optimized_step_==N_optimized_step_) {
double isteps = 1./static_cast<double>(optimized_step_);
sigmamax_opt_done_=true;
for(unsigned i=0; i<sigma_max_.size(); i++) sigma_max_[i]=sigma_max_est_[i]*isteps*sqrt(dnrep);
for(unsigned i=0; i<sigma_max_.size(); i++) {
sigma_max_[i]=sigma_max_est_[i]*isteps*sqrt(dnrep);
Dsigma_[i] = 0.05*(sigma_max_[i] - sigma_min_[i]);
}
}
}
optimized_step_++;
Expand Down

0 comments on commit 2ab5a63

Please sign in to comment.