コード例 #1
0
ファイル: ConfusionMatrix.cs プロジェクト: PalakDave/Pices
        private PicesClassList  SortIntoDisplayOrder(PicesClassList l)
        {
            PicesClassList knownClasses   = new PicesClassList();
            PicesClassList unKnownClasses = new PicesClassList();

            foreach (PicesClass pc in l)
            {
                if (ClassInClassifierClasses(pc))
                {
                    knownClasses.Add(pc);
                }
                else
                {
                    unKnownClasses.Add(pc);
                }
            }

            knownClasses.SortByName();
            unKnownClasses.SortByName();

            foreach (PicesClass pc in unKnownClasses)
            {
                knownClasses.Add(pc);
            }
            return(knownClasses);
        }
コード例 #2
0
ファイル: SizeDistribution.cs プロジェクト: PalakDave/Pices
        } /* ReportByClassCollumns */

        private PicesClassList  BuildMLClassList()
        {
            PicesClassList mlClasses = new PicesClassList();

            int cIDX;

            //for  (cIDX = 0;  cIDX <  totals->end ();  cIDX++)
            for (cIDX = 0; cIDX < totals.Count; cIDX++)
            {
                ClassTotals ct = totals[cIDX];
                mlClasses.Add(PicesClassList.GetUniqueClass(ct.Name, ""));
            }

            mlClasses.SortByName();

            return(mlClasses);
        } /* BuildMLClassList */
コード例 #3
0
ファイル: SizeDistribution2.cs プロジェクト: PalakDave/Pices
        } /* PrintTabDelDistributionMatrix */

        public void   PrintTabDelDistributionMatrixesForSummaryClasses(System.IO.StreamWriter o,
                                                                       String majorTitle,
                                                                       float volume
                                                                       )
        {
            PicesClassList allKnownClasses   = PicesClassList.GetAllKnownClasses();
            PicesClassList allSummaryClasses = allKnownClasses.ExtractSummarizeClasses();

            allSummaryClasses.SortByName();

            foreach (PicesClass pc in allSummaryClasses)
            {
                SizeDistribution2 familySummary = this.ExtractFamilyOfClasses(pc);
                if (familySummary.totals.Count > 1)
                {
                    o.WriteLine(majorTitle + "      *** Summary of " + pc.Name + " ***");
                    o.WriteLine();
                    familySummary.PrintTabDelDistributionMatrix(o, volume);
                    o.WriteLine();
                    o.WriteLine();
                }
            }
        } /* PrintTabDelDistributionMatrixesForSummaryClasses */