Lines Matching refs:kNumRandomWeights
46 // chosen from [0, kNumRandomWeights).
58 int n = rand() % (kNumRandomWeights + allow_zero_);
59 if (allow_zero_ && n == kNumRandomWeights)
67 static const int kNumRandomWeights = 5;
72 template <class T> const int TropicalWeightGenerator_<T>::kNumRandomWeights;
78 // chosen from [0, kNumRandomWeights).
90 int n = rand() % (kNumRandomWeights + allow_zero_);
91 if (allow_zero_ && n == kNumRandomWeights)
99 static const int kNumRandomWeights = 5;
104 template <class T> const int LogWeightGenerator_<T>::kNumRandomWeights;
110 // chosen from (-kNumRandomWeights, kNumRandomWeights) in addition to
123 int n = (rand() % (2*kNumRandomWeights + allow_zero_)) - kNumRandomWeights;
124 if (allow_zero_ && n == kNumRandomWeights)
126 else if (n == -kNumRandomWeights)
134 static const int kNumRandomWeights = 5;
139 template <class T> const int MinMaxWeightGenerator_<T>::kNumRandomWeights;
224 int n = rand() % (kNumRandomWeights + allow_zero_);
225 if (n == kNumRandomWeights)
236 static const int kNumRandomWeights = 5;
241 const int LexicographicWeightGenerator<G1, G2>::kNumRandomWeights;
286 // random integers chosen from [0, kNumRandomWeights).
300 int n = rand() % (kNumRandomWeights + allow_zero_);
306 (allow_zero_ && n == kNumRandomWeights) ?
313 static const int kNumRandomWeights = 5;
317 template <class T> const int SignedLogWeightGenerator_<T>::kNumRandomWeights;