Example #1
0
    public static void CreateDemogroup()
    {
        DemographicGroups asset = (DemographicGroups)CreateAsset("DoVAlpha/GovernmentsDefault/data/demogroups", typeof(DemographicGroups));

        if (asset != null)
        {
            asset.GroupName = "Some group";
        }
    }
Example #2
0
    private void UpdatePopulations()
    {
        var helper = new Helper();

        helper.DemographicDistribution = new Accord.Statistics.Distributions.Univariate.BinomialDistribution();
        //take the distrubtion of this into the political parties so you get a dis of white republicans black democrats and asian indendants etc
        //helper.DemographicDistribution.Generate()
        DemographicGroups.ForEach(e =>
        {
            double newPopulation = (e.Population / 100) * RawPopulation;
            e.Numbers            = Convert.ToInt64(newPopulation);
        });
    }
Example #3
0
 public UprisingEvent StartUpRisingEvent(GenericProvince uprisingProvince, DemographicGroups partyToNewUprisingGroup)
 {
     return(new UprisingEvent());
 }