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