We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 13c9fc0 + 0a3f55d commit a6823b0Copy full SHA for a6823b0
oss_src/random/random.hpp
@@ -271,7 +271,7 @@ namespace graphlab {
271
* constant provided.
272
*/
273
template <typename VecType, typename VType>
274
- size_t multinomial_normalized(const VecType& prb, VType norm) {
+ size_t multinomial(const VecType& prb, VType norm) {
275
276
if(norm < 1e-20) {
277
return fast_uniform<VType>(0, prb.size() - 1);
@@ -517,8 +517,8 @@ namespace graphlab {
517
* automatically normalizes as well.
518
519
template<typename VecLike, typename Double>
520
- inline size_t multinomial_normalized(const VecLike& prb, Double norm) {
521
- return get_source().multinomial_normalized(prb, norm);
+ inline size_t multinomial(const VecLike& prb, Double norm) {
+ return get_source().multinomial(prb, norm);
522
}
523
524
/**
0 commit comments