Searched refs:totalprob (Results 1 – 5 of 5) sorted by relevance
95 double totalprob() const;
454 DPDF::totalprob() const in totalprob() function in DPDF472 total = totalprob(); in isValid()
481 unsigned int totalprob = 0; in ship_update_idle() local494 totalprob += prob[dir]; in ship_update_idle()497 if (totalprob == 0) { in ship_update_idle()502 unsigned int rnd = game.logic_rand() % totalprob; in ship_update_idle()
157 double totalprob = 0.0; in IsValidDataModel() local163 totalprob += m_catprobs[i]; in IsValidDataModel()166 if (fabs(1.0 - totalprob) > EPSILON) return false; in IsValidDataModel()266 double totalprob = 0.0; in ScaleCatProbabilities() local270 totalprob += m_catprobs[cat]; in ScaleCatProbabilities()272 if (fabs(1.0 - totalprob) > EPSILON) in ScaleCatProbabilities()276 m_catprobs[cat] = m_catprobs[cat] / totalprob; in ScaleCatProbabilities()
1104 int i, totalprob = 0, offset; in chooseRandomRoom() local1124 totalprob += prob[i]; in chooseRandomRoom()1127 offset = rand_choice(totalprob); in chooseRandomRoom()