Skip to content

Commit a6823b0

Browse files
author
Yucheng Low
committed
Merge pull request #83 from hoytak/multinomial-rename
Sync up the names of the multinomial sampler.
2 parents 13c9fc0 + 0a3f55d commit a6823b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

oss_src/random/random.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ namespace graphlab {
271271
* constant provided.
272272
*/
273273
template <typename VecType, typename VType>
274-
size_t multinomial_normalized(const VecType& prb, VType norm) {
274+
size_t multinomial(const VecType& prb, VType norm) {
275275

276276
if(norm < 1e-20) {
277277
return fast_uniform<VType>(0, prb.size() - 1);
@@ -517,8 +517,8 @@ namespace graphlab {
517517
* automatically normalizes as well.
518518
*/
519519
template<typename VecLike, typename Double>
520-
inline size_t multinomial_normalized(const VecLike& prb, Double norm) {
521-
return get_source().multinomial_normalized(prb, norm);
520+
inline size_t multinomial(const VecLike& prb, Double norm) {
521+
return get_source().multinomial(prb, norm);
522522
}
523523

524524
/**

0 commit comments

Comments
 (0)