File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ Rcpp::List run_bgm_parallel(
231231 bool learn_mass_matrix,
232232 int num_chains,
233233 int nThreads,
234- uint64_t seed // 👈 new
234+ uint64_t seed
235235) {
236236 std::vector<ChainResult> results (num_chains);
237237
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ void impute_missing_values_for_graphical_model (
9898 }
9999
100100 // Sample from categorical distribution via inverse transform
101- const double u = rng ( ) * cumsum;
101+ const double u = runif (rng ) * cumsum;
102102 int sampled_score = 0 ;
103103 while (u > category_probabilities[sampled_score]) {
104104 sampled_score++;
@@ -1176,7 +1176,8 @@ Rcpp::List run_gibbs_sampler_for_bgm(
11761176 for (int iteration = 0 ; iteration < total_iter; iteration++) {
11771177 if (iteration % print_every == 0 ) {
11781178 tbb::mutex::scoped_lock lock (get_print_mutex ());
1179- Rcpp::Rcout
1179+ // Rcpp::Rcout
1180+ std::cout
11801181 << " [bgm] chain " << chain_id
11811182 << " iteration " << iteration
11821183 << " / " << total_iter
You can’t perform that action at this time.
0 commit comments