master
michael 2022-12-02 02:00:45 -08:00
parent 3d69cbfe6f
commit d3c898bf3f
3 changed files with 26 additions and 38 deletions

View File

@ -27,6 +27,14 @@ void economic_decision_simple(std::vector<int> &balances, int id, float spend_ra
balances.at(recipient_id) += spendable;
}
void economic_decision_tiered(std::vector<int> &balances, int id, float spend_ratio) {
/**
* @brief balances vec
*
* @param balances Balances vec
* @param id ID of participant making decision
* @param id ID of participant making decision
*/
void economic_decision_tiered(std::vector<int> &balances, int id, float max_spend_ratio) {
}

File diff suppressed because one or more lines are too long

View File

@ -88,25 +88,6 @@ PopSimpleResult pop_simple(
}
}
// if (year % 100 == 0) {
// int avg = 0;
// int avg_age = 0;
// for (int i = 0; i < balances.size(); i++) {
// avg += balances[i];
// }
// for (int i = 0; i < balances.size(); i++) {
// avg_age += ages[i];
// }
// avg /= balances.size();
// avg_age /= ages.size();
// std::cout << std::endl;
// std::cout << "year: " << year << std::endl;
// std::cout << "avg bal: " << avg << std::endl;
// std::cout << "avg age: " << avg_age << std::endl;
// std::cout << "players: " << balances.size() << std::endl;
// }
// reset redist tally
redist_total = redist_total_next;
redist_total_next = 0;
@ -130,3 +111,4 @@ PopSimpleResult pop_simple(
res.balances = balances;
return res;
}