41 #define LIMIT_CHILDREN_NUMBER 3
81 alea = alea * total + beginProp;
82 for (
int a = n ; a < m ; ++a) {
106 proba *= pow(mean, occ);
138 std::map<int, SUMOReal>::iterator it;
144 if (it->first < age) {
146 }
else if (it->first >= age && previousAge < age) {
147 prop = ((
SUMOReal)(age - previousAge) / (
SUMOReal)(it->first - previousAge));
148 sum += prop * it->second;
151 previousAge = it->first;
169 std::map<int, SUMOReal>::iterator it;
170 for (it = myMap->begin() ; it != myMap->end() ; ++it) {
176 for (it = myMap->begin() ; it != myMap->end() ; ++it) {
177 it->second = it->second / sum;
188 SUMOReal scale = exp((-1) * maxVar);
190 p = p * (1 - scale) + scale;
195 return mean + variation;
197 return mean - variation;
206 std::map<int, SUMOReal>::iterator it;
213 std::cout <<
"ERROR: incoming at city gates not normalized" << std::endl;
221 std::map<int, SUMOReal>::iterator it;
228 std::cout <<
"ERROR: outgoing at city gates not normalized" << std::endl;