//public int[] mid3_3; public Mid_3_3(ref RawData r) { rd = r; mid3_3_table = new Mid_3_3_table(ref r); //mid3_3 = new int[r.Cols]; //Array.Clear(mid3_3, 0, mid3_3.Length); sw = new StreamWriter(Common.debugpath + "\\" + "MID3_3.txt"); // get interval double intmin, intmax; intmax = (mid3_3_table.spcindex + 1) * Common.GpspInterval; intmin = intmax - Common.GpspInterval; // get PNs between intmax and intmin //for (int i = 0; i < r.Cols; i++) // { // if (r.PerSP[i] > intmin && r.PerSP[i] <= intmax) //// mid3_3[i] = 1; // } mid3_3_table.printtable(ref sw); sw.WriteLine("MID3_3_Table: interval lower : " + intmin.ToString("###,##0.0")); sw.WriteLine("MID3_3_Table: interval upper : " + intmax.ToString("###,##0.0")); //Common.printArray("MID3_3 Array: ", mid3_3, ref sw); }
public Mid_3_4(ref Mid_3_3 m) { m33 = m.mid3_3_table; rd = m.rd; mid3_4 = new int[rd.Cols]; Array.Clear(mid3_4, 0, mid3_4.Length); sw = new StreamWriter(Common.debugpath + "\\" + "MID3_4.txt"); cplistcount = 0; cpnlist = new Cpnlist[m33.Cols]; MaxStep = rd.tpsn; rlist = new R1pnList(); FirstMakeR1PN(); Run(); }