From 0a3f55d4b95956c5df87c23885eb5b1eeca6ff76 Mon Sep 17 00:00:00 2001 From: Hoyt Koepke Date: Wed, 4 Nov 2015 17:16:53 -0800 Subject: [PATCH] Sync up the names of the multinomial sampler. Rename multinomial_normalized -> overloaded version of multinumial. This name is more consistent overall. --- oss_src/random/random.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oss_src/random/random.hpp b/oss_src/random/random.hpp index a738e73a..c5a06df8 100644 --- a/oss_src/random/random.hpp +++ b/oss_src/random/random.hpp @@ -271,7 +271,7 @@ namespace graphlab { * constant provided. */ template - size_t multinomial_normalized(const VecType& prb, VType norm) { + size_t multinomial(const VecType& prb, VType norm) { if(norm < 1e-20) { return fast_uniform(0, prb.size() - 1); @@ -517,8 +517,8 @@ namespace graphlab { * automatically normalizes as well. */ template - inline size_t multinomial_normalized(const VecLike& prb, Double norm) { - return get_source().multinomial_normalized(prb, norm); + inline size_t multinomial(const VecLike& prb, Double norm) { + return get_source().multinomial(prb, norm); } /**