Exemple #1
0
        } /* PrintCSVDistributionMatrix */

        public void   PrintTabDelDistributionMatrix(System.IO.StreamWriter o)
        {
            totals.SortByName();

            PrintTabDelHeader(o);

            ClassTotals classTotals = null;

            ClassTotals grandTotals = new ClassTotals("Grand Totals", bucketCount, bucketSize);

            int idx;

            for (idx = 0; idx < totals.Count; idx++)
            {
                classTotals = totals[idx];
                classTotals.PrintTabDelLine(o);
                grandTotals.AddIn(classTotals);
            }
            o.WriteLine();
            grandTotals.PrintTabDelLine(o);
        } /* PrintTabDelDistributionMatrix */
Exemple #2
0
        } /* ExtractFamilyOfClasses */

        private void  AddFamilyOfClassesToSizeClassTotals(ClassTotals summary,
                                                          PicesClass ancestor
                                                          )
        {
            ClassTotals ct = totals.LookUp(ancestor.Name);

            if (ct != null)
            {
                summary.AddIn(ct);
            }

            if (ancestor.Children != null)
            {
                foreach (PicesClass pc in ancestor.Children)
                {
                    AddFamilyOfClassesToSizeClassTotals(summary, pc);
                }
            }

            return;
        } /* AddFamilyOfClassesToSizeClassTotals */