public static void resultPlotter(File resFile, int[] dataNum, double[][] classifiedModels) throws Exception{
		stopWatch("Writing: " + resFile.toString());
		//ʏo
		OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(resFile));
		BufferedWriter bw = new BufferedWriter(osw);
		bw.write("Time");
		for(int k=0; k<cluster; k++){
			for(int i=0; i<ref; i++) {
				bw.write(String.format(",Class %d-%d", k, i));
			}
			bw.write(String.format(",Model %d,", k)); // +","
		}
		bw.newLine();
		
		//ߎȐvbgEo
		int range = 10000;
		int pitch = 10;
		int resol = range/pitch;
		for (int r=0; r<resol; r++) {
			int time = pitch*r;
			bw.write(String.format("%d", time));
			for (int k=0; k<cluster; k++) {
				double plot = 0.0;
				double subPlot = 0.0;
				for (int i=0; i<ref; i++) {
					subPlot = classifiedModels[k][1 + 4*i] * delayedLognormal(time, classifiedModels[k][1 + i*4 + 3],
							classifiedModels[k][1 + 4*i + 1], classifiedModels[k][1 + 4*i + 2]);
					bw.write(String.format(",%f", subPlot));
					plot += subPlot;
				}
				bw.write(String.format(",%f,", plot)); // +","
			}
			bw.newLine();
		}
		bw.newLine();
		
		//NX^o
		for(int k=0; k<cluster; k++) {
			bw.write(String.format("#Model %d, mixture: %f, %d", k, classifiedModels[k][0], dataNum[k]));
			bw.newLine();
			for(int i=0; i<ref; i++) {
				bw.write(String.format("#Class %d-%d", k, i));
				bw.newLine();
				bw.write(String.format("weight: %f", classifiedModels[k][1 + 4*i]));
				bw.newLine();
				bw.write(String.format("mean: %f", classifiedModels[k][1 + 4*i + 1]));
				bw.newLine();
				bw.write(String.format("variance: %f", classifiedModels[k][1 + 4*i + 2]));
				bw.newLine();
				bw.write(String.format("delay: %f", classifiedModels[k][1 + 4*i + 3]));
				bw.newLine();
			}
			bw.newLine();
		}
		
		bw.close();
		osw.close();
		
	}