void AddDefaultToAgeDist() { for (int i = 0; i < defaultAgeDistribution5_1000.Length * 5; i++) { ageDistribution.AddPoint(defaultAgeDistribution5_1000 [i / 5] * 1000 / 5 * 2); } }
void RecalculateRates(float births, float deaths, float prevPopulation) { birthRate.AddPoint(births / prevPopulation * 1000); deathRate.AddPoint(deaths / prevPopulation * 1000); rateChart.UpdateScale(); rateChart.QueueDraw(); }
void RecalculatePopulation() { populationLine.AddPoint((int)ageDistribution.GetSumOfValues()); populationChart.UpdateScale(); populationChart.QueueDraw(); }