public static void sweepPseudoRehearsalSerialLearningDynVsNot(String filename, ANN ann, 
			double[][] basein, double[][] baseout,
			double[][] serialin, double[][] serialout, 
			double maxError, int bufferSize, double abortlim,
			boolean reset, boolean reals) throws IOException {

		File file = new File(filename);
		FileWriter f = new FileWriter(file.getAbsolutePath());

		/*f.write("0\t");
		for (int i = 0; i < serialout.length + 1; i++) {
			f.write(i + "\t");
		}
		f.write("\n");*/

		int reps = 1; // number of tests
		double[][] allout = new double[serialin.length+1][reps]; // holds all test data

		for (int rep = 0; rep < reps; rep++) {
			//System.out.println("one: trial " + rep);
			ann.reset();
			int pseudopopsize = 128;

			double[] trial = ann.sweepPseudoRehearsalSerialLearning(basein, baseout, serialin, serialout, maxError, pseudopopsize, bufferSize, reals, 0 , 1);
			for (int j = 0; j < allout.length; j++) {
				allout[j][rep] = trial[j];
			}
			//System.out.println("two: finished trial " + rep);
		}
		//System.out.println("three: writing to file");

		/*f.write("normal\t");
		for (int i = 0; i < allout.length; i++) {
			f.write(SimsA01.median(allout[i]) + "\t");
		}
		f.write("\n");*/


		//// dynamic! MUST GO AFTER BECAUSE RESET DOESN'T RESENT # OF HL NODES!!!!!!!
		System.out.println("\n\nDYNAMICCCCC");
		double[][][] dynamOut = new double[2][serialin.length+1][reps]; 

		for (int rep = 0; rep < reps; rep++) {
			//System.out.println("one: trial " + rep);
			ann.reset();

			double[][] trial = ann.dynamicSweepPseudo(basein, baseout, serialin, serialout, maxError, bufferSize, abortlim, reset, reals);

			System.out.println("trials:");
			System.out.println(Arrays.deepToString(trial) + "\n");
			for (int j = 0; j < dynamOut.length; j++) {
				dynamOut[0][j][rep] = trial[0][j];
			}
			for (int j = 0; j < dynamOut.length; j++) {
				dynamOut[1][j][rep] = trial[1][j];
			}
			//System.out.println("two: finished trial " + rep);
		}
		//System.out.println("three: writing to file");

		f.write("dynamic base\t");
		for (int i = 0; i < dynamOut[0].length; i++) {
			f.write(SimsA01.median(dynamOut[0][i]) + "\t");
		}
		f.write("\n");

		f.write("dynamic serial\t");
		for (int i = 0; i < dynamOut[0].length; i++) {
			f.write(SimsA01.median(dynamOut[1][i]) + "\t");
		}
		f.write("\n");

		f.close();
		System.out.println("done");

	}