Skip to content

Commit

Permalink
try gig in dl [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Young Geun Kim committed Dec 17, 2024
1 parent a722129 commit 192ddde
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions inst/include/bvhardraw.h
Original file line number Diff line number Diff line change
Expand Up @@ -806,12 +806,12 @@ inline void dl_mn_sparsity(Eigen::VectorXd& group_param, Eigen::VectorXi& grp_ve
mn_scl[k++] = abs(coef_vec[j]) / (global_param * local_param[j]);
}
}
// group_param[i] = sim_gig(1, shape - mn_size, 2 * rate, 2 * mn_scl.sum(), rng)[0];
group_param[i] = 1 / gamma_rand(
shape + mn_size,
1 / (rate + mn_scl.sum()),
rng
);
group_param[i] = sim_gig(1, shape - mn_size, 2 * rate, 2 * mn_scl.sum(), rng)[0];
// group_param[i] = 1 / gamma_rand(
// shape + mn_size,
// 1 / (rate + mn_scl.sum()),
// rng
// );
}
}

Expand Down

0 comments on commit 192ddde

Please sign in to comment.