Example #1
0
        public DeviationComparison(string outputPath)
        {
            this.outputPath   = outputPath;
            votingSystemList  = getVotingSystemList();
            politicalSpectrum = new Spectrum();
            voterList         = Voter.createVoterList(Tweakables.VOTER_COUNT, politicalSpectrum);

            System.IO.File.WriteAllText(@outputPath, Tweakables.TRIAL_COUNT + " trials run with " + Tweakables.CANDIDATE_COUNT + " candidates and " + Tweakables.VOTER_COUNT + " voters and " + Tweakables.SPECTRUM_DIMENSIONS + " political spectrum dimensions." + Environment.NewLine);
            System.IO.File.AppendAllText(@outputPath, ElectionSummary.getHeader(votingSystemList));
            System.IO.File.AppendAllText(@outputPath, Environment.NewLine);
        }