public void writeMeanAndStdDevFiles(int[] placeIndicies) {

		DecimalFormat form = new DecimalFormat("0.0");

		StringBuilder meanBuffer = new StringBuilder("Totals\t");
		StringBuilder standDevBuffer = new StringBuilder("Totals\t");

		//begin by labeling the columns...
		for (int i = 0; i < placeIndicies.length; i++) {
			meanBuffer.append(placeData[placeIndicies[i]].name);
			meanBuffer.append("\t");
			standDevBuffer.append(placeData[placeIndicies[i]].name);
			standDevBuffer.append("\t");
		}
		meanBuffer.append("\n");
		standDevBuffer.append("\n");


		//compute the length of the shortest epidemic
		int minNumDays = Integer.MAX_VALUE;
		for (int i = 0; i < this.numRuns; i++) {
			minNumDays = Math.min(minNumDays, placeData[0].getNumDataPoints(i));
		}

		//for each day
		for (int day = 0; day < minNumDays; day++) {

			//extract "totals" data for this particular day
			double[] totalsData = new double[numRuns];
			for (int i = 0; i < totalsData.length; i++) {
				for (int j = 0; j < placeData.length; j++) {
					totalsData[i] += placeData[j].getInfectiousDataPoint(i, day);
				}
			}

			//compute and record mean and StdDev for "totals" data
			double[] meanAndSD = Utility.meanAndSD(totalsData);
			meanBuffer.append(form.format(meanAndSD[0]));
			meanBuffer.append("\t");
			standDevBuffer.append(form.format(meanAndSD[1]));
			standDevBuffer.append("\t");

			//for each place
			for (int k = 0; k < placeIndicies.length; k++) {

				int place = placeIndicies[k];

				//extract the data for the current place
				double[] daysData = new double[numRuns];
				for (int i = 0; i < daysData.length; i++) {
					daysData[i] = placeData[place].getInfectiousDataPoint(i, day);
				}

				//compute and record mean and StdDev for the current place
				meanAndSD = Utility.meanAndSD(daysData);
				meanBuffer.append(form.format(meanAndSD[0]));
				meanBuffer.append("\t");
				standDevBuffer.append(form.format(meanAndSD[1]));
				standDevBuffer.append("\t");
			}

			meanBuffer.append("\n");
			standDevBuffer.append("\n");
		}

		try {
			FileUtility.writeToNewFile("MeanData.txt", meanBuffer.toString());
			FileUtility.writeToNewFile("StandDevData.txt", standDevBuffer.toString());
		} catch (Exception e) {
			e.printStackTrace();
			System.exit(0);
		}
	}