static void Main(string[] args) { Parse p = new Parse(); p.folderName = @"D:\[BACKUP][POWER][20140220]\SamsungS3\line\voice\1"; /*p.folderName = @"c:\ebl\skype2\1"; p.folderName = @"c:\ebl\skype2\1"; p.folderName = @"c:\ebl\skype2\1";*/ p.processTrain(); }
private void button1_Click(object sender, EventArgs e) { Parse powerParse = new Parse(); powerParse._Volt = 4.2; double[,] ret = new double[5,5]; for (int i = 0; i <= 0; i += 10) { for (int j = 1; j <= 5; j++) { string file = @"\util" + i + "_" + j; Console.WriteLine("util" + i + "_" + j); string filePath = Config.SAMPLEROOT+file; ArrayList results = powerParse.PowerParse(filePath); ret[0,j-1] = ProcessAvg(30, 50, results); //100 MHz ret[1,j-1] = ProcessAvg(160, 50, results); //200 MHz ret[2,j-1] = ProcessAvg(290, 50, results); //400 MHz ret[3,j-1] = ProcessAvg(420, 50, results); //800 MHz ret[4,j-1] = ProcessAvg(550, 50, results); //1000 MHz } double[] x = new double[5]; for (int m = 0; m < 5; m++) { for (int n = 0; n < 5; n++) { x[n] = ret[m,n]; } Array.Sort(x); double sum = 0; double avg = 0; sum = x[1] + x[2] + x[3]; avg = sum / 3; Console.WriteLine(avg); } } }
private void btnProcessSample_Click(object sender, EventArgs e) { updateConfig(); try { updateStatus("Start processing all samples : totally #" + Config.TOTALSAMPLE + " samples."); Parse sample = new Parse(Config.POWEROFFSET, Config.VOLT, Config.WORKINGDIR, Config.TOTALSAMPLE); updateStatus("Step2 : Process Sample Processed Successfully."); } catch (ApplicationException msg) { updateStatus(msg.Message); } catch (IOException msg) { updateStatus(msg.Message); } }