Home
last modified time | relevance | path

Searched refs:totalprob (Results 1 – 5 of 5) sorted by relevance

/dports/games/powder/powder118_src/support/builddpdf/
H A Ddpdf.h95 double totalprob() const;
H A Ddpdf.cpp454 DPDF::totalprob() const in totalprob() function in DPDF
472 total = totalprob(); in isValid()
/dports/games/widelands/widelands-build21/src/logic/map_objects/tribes/
H A Dship.cc481 unsigned int totalprob = 0; in ship_update_idle() local
494 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()
/dports/biology/lamarc/lamarc-2.1.8/src/datalike/
H A Ddlmodel.cpp157 double totalprob = 0.0; in IsValidDataModel() local
163 totalprob += m_catprobs[i]; in IsValidDataModel()
166 if (fabs(1.0 - totalprob) > EPSILON) return false; in IsValidDataModel()
266 double totalprob = 0.0; in ScaleCatProbabilities() local
270 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()
/dports/games/powder/powder118_src/
H A Dbuild.cpp1104 int i, totalprob = 0, offset; in chooseRandomRoom() local
1124 totalprob += prob[i]; in chooseRandomRoom()
1127 offset = rand_choice(totalprob); in chooseRandomRoom()