Skip to content

Commit bdccfed

Browse files
Fix oopsie.
1 parent 8a641ac commit bdccfed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gibbs_functions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ void metropolis_thresholds_blumecapel(NumericMatrix thresholds,
365365
log_prob = std::exp(log_prob);
366366
}
367367

368-
double update_proposal_sd = proposal_sd_blumecapel(variable, 1) +
368+
update_proposal_sd = proposal_sd_blumecapel(variable, 1) +
369369
(log_prob - target_ar) * std::exp(-log(t) * phi);
370370

371371
if(std::isnan(update_proposal_sd) == true) {
@@ -818,8 +818,8 @@ List gibbs_sampler(IntegerMatrix observations,
818818
IntegerMatrix index(no_interactions, 3);
819819

820820
//Parameters of adaptive proposals -------------------------------------------
821-
double phi = 0.75;
822-
double target_ar = 0.234;
821+
double phi = 0.75;
822+
double target_ar = 0.234;
823823
double epsilon_lo = 1.0 / static_cast<double>(no_persons);
824824
double epsilon_hi = 2.0;
825825

0 commit comments

Comments
 (0)