private void writeEmissionData(FileWriter outFile, int randomVehicleType)
			throws IOException {
		int yearIndex = getModelYearEmissionIndex(modelYear);
		RandomGaussianGenerator normalDistGenerator = new RandomGaussianGenerator();
		exhaustHC = 0;
		nonExhaustHC = 0;
		exhaustCO = 0;
		exhaustNO2 = 0;
		switch (randomVehicleType) {
		case LIGHT_DUTY_VEHICLE:
			exhaustHC = normalDistGenerator.getNextScaledGaussian(
					emissionData[EX_HC_LIGHT_DUTY_VEHICLE][yearIndex], .3);
			nonExhaustHC = normalDistGenerator.getNextScaledGaussian(
					emissionData[NONEX_HC_LIGHT_DUTY_VEHICLE][yearIndex], .3);
			exhaustCO = normalDistGenerator.getNextScaledGaussian(
					emissionData[EX_CO_LIGHT_DUTY_VEHICLE][yearIndex], 2);
			exhaustNO2 = normalDistGenerator.getNextScaledGaussian(
					emissionData[EX_NO2_LIGHT_DUTY_VEHICLE][yearIndex], .5);
			break;
		case LIGHT_DUTY_TRUCK:
			exhaustHC = normalDistGenerator.getNextScaledGaussian(
					emissionData[EX_HC_LIGHT_DUTY_TRUCK][yearIndex], .3);
			nonExhaustHC = normalDistGenerator.getNextScaledGaussian(
					emissionData[NONEX_HC_LIGHT_DUTY_TRUCK][yearIndex], .3);
			exhaustCO = normalDistGenerator.getNextScaledGaussian(
					emissionData[EX_CO_LIGHT_DUTY_TRUCK][yearIndex], 2);
			exhaustNO2 = normalDistGenerator.getNextScaledGaussian(
					emissionData[EX_NO2_LIGHT_DUTY_TRUCK][yearIndex], .5);
			break;
		case HEAVY_DUTY_VEHICLE:
			exhaustHC = normalDistGenerator.getNextScaledGaussian(
					emissionData[EX_HC_HEAVY_DUTY_VEHICLE][yearIndex], .3);
			nonExhaustHC = normalDistGenerator.getNextScaledGaussian(
					emissionData[NONEX_HC_HEAVY_DUTY_VEHICLE][yearIndex], .3);
			exhaustCO = normalDistGenerator.getNextScaledGaussian(
					emissionData[EX_CO_HEAVY_DUTY_VEHICLE][yearIndex], 2);
			exhaustNO2 = normalDistGenerator.getNextScaledGaussian(
					emissionData[EX_NO2_HEAVY_DUTY_VEHICLE][yearIndex], .5);
			break;
		case MOTORCYCLE:
			exhaustHC = normalDistGenerator.getNextScaledGaussian(
					emissionData[EX_HC_MOTORCYCLE][yearIndex], 0);
			nonExhaustHC = normalDistGenerator.getNextScaledGaussian(
					emissionData[NONEX_HC_MOTORCYCLE][yearIndex], 0);
			exhaustCO = normalDistGenerator.getNextScaledGaussian(
					emissionData[EX_CO_MOTORCYCLE][yearIndex], 0);
			exhaustNO2 = normalDistGenerator.getNextScaledGaussian(
					emissionData[EX_NO2_MOTORCYCLE][yearIndex], 0);
		}
		dateTested = getRandomTestDate();
		outFile.write(dateTested + ",");
		if (exhaustHC < 0)
			exhaustHC = -1 * exhaustHC;
		if (nonExhaustHC < 0)
			nonExhaustHC = -1 * nonExhaustHC;
		if (exhaustCO < 0)
			exhaustCO = -1 * exhaustCO;
		if (exhaustNO2 < 0)
			exhaustNO2 = -1 * exhaustNO2;
		outFile.write(exhaustHC + ",");
		outFile.write(nonExhaustHC + ",");
		outFile.write(exhaustCO + ",");
		outFile.write(exhaustNO2 + ",");
		outFile.write(numberOfSamples + ",");
		outFile.write("" + photoCopies);
	}