} /* 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 */
} /* 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 */