Index: /trunk/psLib/src/dataManip/psStats.c
===================================================================
--- /trunk/psLib/src/dataManip/psStats.c	(revision 1025)
+++ /trunk/psLib/src/dataManip/psStats.c	(revision 1026)
@@ -265,4 +265,5 @@
                     binNum = (int) ((in->data.F32[i] - out->bounds->data.F32[0]) /
                                     binSize);
+                    (out->nums->data.S32[binNum])++;
                     // If this is a non-uniform histogram, determining the correct
                     // bin number requires a bit more work.
Index: /trunk/psLib/src/math/psStats.c
===================================================================
--- /trunk/psLib/src/math/psStats.c	(revision 1025)
+++ /trunk/psLib/src/math/psStats.c	(revision 1026)
@@ -265,4 +265,5 @@
                     binNum = (int) ((in->data.F32[i] - out->bounds->data.F32[0]) /
                                     binSize);
+                    (out->nums->data.S32[binNum])++;
                     // If this is a non-uniform histogram, determining the correct
                     // bin number requires a bit more work.
Index: /trunk/psLib/test/dataManip/tst_psStats07.c
===================================================================
--- /trunk/psLib/test/dataManip/tst_psStats07.c	(revision 1025)
+++ /trunk/psLib/test/dataManip/tst_psStats07.c	(revision 1026)
@@ -33,5 +33,5 @@
     float realMeanWithMask   = 0.0;
     float realMedianWithMask = 0.0;
-    float realModeWithMask   = -1.0;
+    float realModeWithMask   = 40.0;
     float realStdevWithMask  = 0.0;
     float realLQWithMask     = 0.0;
Index: /trunk/psLib/test/dataManip/verified/tst_psStats07.stdout
===================================================================
--- /trunk/psLib/test/dataManip/verified/tst_psStats07.stdout	(revision 1025)
+++ /trunk/psLib/test/dataManip/verified/tst_psStats07.stdout	(revision 1026)
@@ -109,5 +109,5 @@
 \----------------------------------------------------------------------------------/
 
-The expected Mode was -1.000000; the calculated Mode was -1.000000
+The expected Mode was 40.000000; the calculated Mode was 40.000000
 
 ---> TESTPOINT PASSED (psVector functions{PS_STAT_ROBUST_STATS: robust Mode: with vector mask} | tst_psStats07.c)
Index: /trunk/psLib/test/image/tst_psImageStats02.c
===================================================================
--- /trunk/psLib/test/image/tst_psImageStats02.c	(revision 1025)
+++ /trunk/psLib/test/image/tst_psImageStats02.c	(revision 1026)
@@ -67,11 +67,11 @@
 
     rc = psImageEvalPolynomial(outImage, my2DPoly);
-    for (i=0;i<IMAGE_SIZE;i++) {
-        for (j=0;j<IMAGE_SIZE;j++) {
-            printf("pixel[%d][%d] is (%f, %f)\n", i, j,
-                   tmpImage->data.F32[i][j],
-                   outImage->data.F32[i][j]);
-        }
-    }
+    //    for (i=0;i<IMAGE_SIZE;i++) {
+    //        for (j=0;j<IMAGE_SIZE;j++) {
+    //             printf("pixel[%d][%d] is (%f, %f)\n", i, j,
+    //                   tmpImage->data.F32[i][j],
+    //                   outImage->data.F32[i][j]);
+    //        }
+    //    }
 
     psMemCheckCorruption(1);
Index: /trunk/psLib/test/image/verified/tst_psImageStats00.stdout
===================================================================
--- /trunk/psLib/test/image/verified/tst_psImageStats00.stdout	(revision 1025)
+++ /trunk/psLib/test/image/verified/tst_psImageStats00.stdout	(revision 1026)
@@ -222,16 +222,16 @@
 Bin number 2 bounds: (6.400000 - 9.600000) data (27)
 Bin number 3 bounds: (9.600000 - 12.800000) data (36)
-Bin number 4 bounds: (12.800000 - 16.000000) data (45)
-Bin number 5 bounds: (16.000000 - 19.200001) data (74)
+Bin number 4 bounds: (12.800000 - 16.000000) data (62)
+Bin number 5 bounds: (16.000000 - 19.200001) data (57)
 Bin number 6 bounds: (19.200001 - 22.400000) data (66)
 Bin number 7 bounds: (22.400000 - 25.600000) data (75)
 Bin number 8 bounds: (25.600000 - 28.800001) data (84)
-Bin number 9 bounds: (28.800001 - 32.000000) data (93)
-Bin number 10 bounds: (32.000000 - 35.200001) data (118)
+Bin number 9 bounds: (28.800001 - 32.000000) data (124)
+Bin number 10 bounds: (32.000000 - 35.200001) data (87)
 Bin number 11 bounds: (35.200001 - 38.400002) data (78)
 Bin number 12 bounds: (38.400002 - 41.600002) data (69)
 Bin number 13 bounds: (41.600002 - 44.799999) data (60)
-Bin number 14 bounds: (44.799999 - 48.000000) data (51)
-Bin number 15 bounds: (48.000000 - 51.200001) data (54)
+Bin number 14 bounds: (44.799999 - 48.000000) data (66)
+Bin number 15 bounds: (48.000000 - 51.200001) data (39)
 Bin number 16 bounds: (51.200001 - 54.400002) data (30)
 Bin number 17 bounds: (54.400002 - 57.600002) data (21)
@@ -251,11 +251,11 @@
 Bin number 2 bounds: (6.400000 - 9.600000) data (27)
 Bin number 3 bounds: (9.600000 - 12.800000) data (36)
-Bin number 4 bounds: (12.800000 - 16.000000) data (45)
-Bin number 5 bounds: (16.000000 - 19.200001) data (74)
+Bin number 4 bounds: (12.800000 - 16.000000) data (62)
+Bin number 5 bounds: (16.000000 - 19.200001) data (57)
 Bin number 6 bounds: (19.200001 - 22.400000) data (66)
 Bin number 7 bounds: (22.400000 - 25.600000) data (75)
 Bin number 8 bounds: (25.600000 - 28.800001) data (84)
-Bin number 9 bounds: (28.800001 - 32.000000) data (93)
-Bin number 10 bounds: (32.000000 - 35.200001) data (115)
+Bin number 9 bounds: (28.800001 - 32.000000) data (124)
+Bin number 10 bounds: (32.000000 - 35.200001) data (84)
 Bin number 11 bounds: (35.200001 - 38.400002) data (66)
 Bin number 12 bounds: (38.400002 - 41.600002) data (48)
@@ -292,11 +292,11 @@
 Bin number 2 bounds: (9.600000 - 14.400001) data (65)
 Bin number 3 bounds: (14.400001 - 19.200001) data (90)
-Bin number 4 bounds: (19.200001 - 24.000000) data (90)
-Bin number 5 bounds: (24.000000 - 28.800001) data (135)
+Bin number 4 bounds: (19.200001 - 24.000000) data (115)
+Bin number 5 bounds: (24.000000 - 28.800001) data (110)
 Bin number 6 bounds: (28.800001 - 33.600002) data (157)
 Bin number 7 bounds: (33.600002 - 38.400002) data (160)
 Bin number 8 bounds: (38.400002 - 43.200001) data (160)
-Bin number 9 bounds: (43.200001 - 48.000000) data (128)
-Bin number 10 bounds: (48.000000 - 52.800003) data (160)
+Bin number 9 bounds: (43.200001 - 48.000000) data (160)
+Bin number 10 bounds: (48.000000 - 52.800003) data (128)
 Bin number 11 bounds: (52.800003 - 57.600002) data (160)
 Bin number 12 bounds: (57.600002 - 62.400002) data (160)
@@ -321,11 +321,11 @@
 Bin number 2 bounds: (9.600000 - 14.400001) data (65)
 Bin number 3 bounds: (14.400001 - 19.200001) data (90)
-Bin number 4 bounds: (19.200001 - 24.000000) data (90)
-Bin number 5 bounds: (24.000000 - 28.800001) data (135)
+Bin number 4 bounds: (19.200001 - 24.000000) data (115)
+Bin number 5 bounds: (24.000000 - 28.800001) data (110)
 Bin number 6 bounds: (28.800001 - 33.600002) data (157)
 Bin number 7 bounds: (33.600002 - 38.400002) data (160)
 Bin number 8 bounds: (38.400002 - 43.200001) data (160)
-Bin number 9 bounds: (43.200001 - 48.000000) data (128)
-Bin number 10 bounds: (48.000000 - 52.800003) data (154)
+Bin number 9 bounds: (43.200001 - 48.000000) data (160)
+Bin number 10 bounds: (48.000000 - 52.800003) data (122)
 Bin number 11 bounds: (52.800003 - 57.600002) data (130)
 Bin number 12 bounds: (57.600002 - 62.400002) data (105)
@@ -362,11 +362,11 @@
 Bin number 2 bounds: (9.600000 - 14.400001) data (65)
 Bin number 3 bounds: (14.400001 - 19.200001) data (90)
-Bin number 4 bounds: (19.200001 - 24.000000) data (90)
-Bin number 5 bounds: (24.000000 - 28.800001) data (135)
+Bin number 4 bounds: (19.200001 - 24.000000) data (115)
+Bin number 5 bounds: (24.000000 - 28.800001) data (110)
 Bin number 6 bounds: (28.800001 - 33.600002) data (157)
 Bin number 7 bounds: (33.600002 - 38.400002) data (160)
 Bin number 8 bounds: (38.400002 - 43.200001) data (160)
-Bin number 9 bounds: (43.200001 - 48.000000) data (128)
-Bin number 10 bounds: (48.000000 - 52.800003) data (160)
+Bin number 9 bounds: (43.200001 - 48.000000) data (160)
+Bin number 10 bounds: (48.000000 - 52.800003) data (128)
 Bin number 11 bounds: (52.800003 - 57.600002) data (160)
 Bin number 12 bounds: (57.600002 - 62.400002) data (160)
@@ -391,11 +391,11 @@
 Bin number 2 bounds: (9.600000 - 14.400001) data (65)
 Bin number 3 bounds: (14.400001 - 19.200001) data (90)
-Bin number 4 bounds: (19.200001 - 24.000000) data (90)
-Bin number 5 bounds: (24.000000 - 28.800001) data (135)
+Bin number 4 bounds: (19.200001 - 24.000000) data (115)
+Bin number 5 bounds: (24.000000 - 28.800001) data (110)
 Bin number 6 bounds: (28.800001 - 33.600002) data (157)
 Bin number 7 bounds: (33.600002 - 38.400002) data (160)
 Bin number 8 bounds: (38.400002 - 43.200001) data (160)
-Bin number 9 bounds: (43.200001 - 48.000000) data (128)
-Bin number 10 bounds: (48.000000 - 52.800003) data (154)
+Bin number 9 bounds: (43.200001 - 48.000000) data (160)
+Bin number 10 bounds: (48.000000 - 52.800003) data (122)
 Bin number 11 bounds: (52.800003 - 57.600002) data (130)
 Bin number 12 bounds: (57.600002 - 62.400002) data (105)
Index: /trunk/psLib/test/image/verified/tst_psImageStats02.stdout
===================================================================
--- /trunk/psLib/test/image/verified/tst_psImageStats02.stdout	(revision 1025)
+++ /trunk/psLib/test/image/verified/tst_psImageStats02.stdout	(revision 1026)
@@ -1,102 +1,2 @@
-(0.000000, 0.000000)
-(1.000000, 0.000000)
-(2.000000, 0.000000)
-(3.000000, 0.000000)
-(4.000000, 0.000000)
-(5.000000, 0.000000)
-(6.000000, 0.000000)
-(7.000000, 0.000000)
-(8.000000, 0.000000)
-(9.000000, 0.000000)
-(1.000000, 0.000000)
-(2.000000, 0.000000)
-(3.000000, 0.000000)
-(4.000000, 0.000000)
-(5.000000, 0.000000)
-(6.000000, 0.000000)
-(7.000000, 0.000000)
-(8.000000, 0.000000)
-(9.000000, 0.000000)
-(10.000000, 0.000000)
-(2.000000, 0.000000)
-(3.000000, 0.000000)
-(4.000000, 0.000000)
-(5.000000, 0.000000)
-(6.000000, 0.000000)
-(7.000000, 0.000000)
-(8.000000, 0.000000)
-(9.000000, 0.000000)
-(10.000000, 0.000000)
-(11.000000, 0.000000)
-(3.000000, 0.000000)
-(4.000000, 0.000000)
-(5.000000, 0.000000)
-(6.000000, 0.000000)
-(7.000000, 0.000000)
-(8.000000, 0.000000)
-(9.000000, 0.000000)
-(10.000000, 0.000000)
-(11.000000, 0.000000)
-(12.000000, 0.000000)
-(4.000000, 0.000000)
-(5.000000, 0.000000)
-(6.000000, 0.000000)
-(7.000000, 0.000000)
-(8.000000, 0.000000)
-(9.000000, 0.000000)
-(10.000000, 0.000000)
-(11.000000, 0.000000)
-(12.000000, 0.000000)
-(13.000000, 0.000000)
-(5.000000, 0.000000)
-(6.000000, 0.000000)
-(7.000000, 0.000000)
-(8.000000, 0.000000)
-(9.000000, 0.000000)
-(10.000000, 0.000000)
-(11.000000, 0.000000)
-(12.000000, 0.000000)
-(13.000000, 0.000000)
-(14.000000, 0.000000)
-(6.000000, 0.000000)
-(7.000000, 0.000000)
-(8.000000, 0.000000)
-(9.000000, 0.000000)
-(10.000000, 0.000000)
-(11.000000, 0.000000)
-(12.000000, 0.000000)
-(13.000000, 0.000000)
-(14.000000, 0.000000)
-(15.000000, 0.000000)
-(7.000000, 0.000000)
-(8.000000, 0.000000)
-(9.000000, 0.000000)
-(10.000000, 0.000000)
-(11.000000, 0.000000)
-(12.000000, 0.000000)
-(13.000000, 0.000000)
-(14.000000, 0.000000)
-(15.000000, 0.000000)
-(16.000000, 0.000000)
-(8.000000, 0.000000)
-(9.000000, 0.000000)
-(10.000000, 0.000000)
-(11.000000, 0.000000)
-(12.000000, 0.000000)
-(13.000000, 0.000000)
-(14.000000, 0.000000)
-(15.000000, 0.000000)
-(16.000000, 0.000000)
-(17.000000, 0.000000)
-(9.000000, 0.000000)
-(10.000000, 0.000000)
-(11.000000, 0.000000)
-(12.000000, 0.000000)
-(13.000000, 0.000000)
-(14.000000, 0.000000)
-(15.000000, 0.000000)
-(16.000000, 0.000000)
-(17.000000, 0.000000)
-(18.000000, 0.000000)
 /----------------------------- TESTPOINT ------------------------------------------\
 |             TestFile: tst_psImageStats02.c                                       |
@@ -114,104 +14,4 @@
 \----------------------------------------------------------------------------------/
 
-(0.000000, -69840.000000)
-(1.000000, -135200.000000)
-(2.000000, -200560.000000)
-(3.000000, -265920.000000)
-(4.000000, -331280.000000)
-(5.000000, -396640.000000)
-(6.000000, -462000.000000)
-(7.000000, -527360.000000)
-(8.000000, -592720.000000)
-(9.000000, -658080.000000)
-(1.000000, 1108128.000000)
-(2.000000, 2201856.000000)
-(3.000000, 3295584.000000)
-(4.000000, 4389312.000000)
-(5.000000, 5483040.000000)
-(6.000000, 6576768.000000)
-(7.000000, 7670496.000000)
-(8.000000, 8764224.000000)
-(9.000000, 9857952.000000)
-(10.000000, 10951680.000000)
-(2.000000, 27349008.000000)
-(3.000000, 54532576.000000)
-(4.000000, 81716144.000000)
-(5.000000, 108899712.000000)
-(6.000000, 136083280.000000)
-(7.000000, 163266848.000000)
-(8.000000, 190450416.000000)
-(9.000000, 217633984.000000)
-(10.000000, 244817552.000000)
-(11.000000, 272001120.000000)
-(3.000000, 103435392.000000)
-(4.000000, 206308864.000000)
-(5.000000, 309182336.000000)
-(6.000000, 412055808.000000)
-(7.000000, 514929280.000000)
-(8.000000, 617802752.000000)
-(9.000000, 720676224.000000)
-(10.000000, 823549696.000000)
-(11.000000, 926423168.000000)
-(12.000000, 1029296640.000000)
-(4.000000, 254149872.000000)
-(5.000000, 506982624.000000)
-(6.000000, 759815360.000000)
-(7.000000, 1012648128.000000)
-(8.000000, 1265480832.000000)
-(9.000000, 1518313728.000000)
-(10.000000, 1771146368.000000)
-(11.000000, 2023979008.000000)
-(12.000000, 2276811776.000000)
-(13.000000, 2529644800.000000)
-(5.000000, 504275040.000000)
-(6.000000, 1006005760.000000)
-(7.000000, 1507736576.000000)
-(8.000000, 2009467264.000000)
-(9.000000, 2511197952.000000)
-(10.000000, 3012928768.000000)
-(11.000000, 3514659328.000000)
-(12.000000, 4016390144.000000)
-(13.000000, 4518120960.000000)
-(14.000000, 5019851776.000000)
-(6.000000, 878593536.000000)
-(7.000000, 1752830208.000000)
-(8.000000, 2627066880.000000)
-(9.000000, 3501303552.000000)
-(10.000000, 4375540224.000000)
-(11.000000, 5249777152.000000)
-(12.000000, 6124013568.000000)
-(13.000000, 6998250496.000000)
-(14.000000, 7872486912.000000)
-(15.000000, 8746723328.000000)
-(7.000000, 1401887744.000000)
-(8.000000, 2796908032.000000)
-(9.000000, 4191927808.000000)
-(10.000000, 5586948096.000000)
-(11.000000, 6981967872.000000)
-(12.000000, 8376987648.000000)
-(13.000000, 9772007424.000000)
-(14.000000, 11167027200.000000)
-(15.000000, 12562048000.000000)
-(16.000000, 13957066752.000000)
-(8.000000, 2098940672.000000)
-(9.000000, 4187690496.000000)
-(10.000000, 6276440064.000000)
-(11.000000, 8365190144.000000)
-(12.000000, 10453940224.000000)
-(13.000000, 12542689280.000000)
-(14.000000, 14631439360.000000)
-(15.000000, 16720189440.000000)
-(16.000000, 18808938496.000000)
-(17.000000, 20897689600.000000)
-(9.000000, 2994534400.000000)
-(10.000000, 5974630400.000000)
-(11.000000, 8954726400.000000)
-(12.000000, 11934822400.000000)
-(13.000000, 14914918400.000000)
-(14.000000, 17895014400.000000)
-(15.000000, 20875110400.000000)
-(16.000000, 23855204352.000000)
-(17.000000, 26835300352.000000)
-(18.000000, 29815394304.000000)
 
 ---> TESTPOINT PASSED (psImageStats functions{Calculate Chebyshev Polynomials, no mask} | tst_psImageStats02.c)
Index: /trunk/psLib/test/sysUtils/verified/tst_psLogMsg02.stderr
===================================================================
--- /trunk/psLib/test/sysUtils/verified/tst_psLogMsg02.stderr	(revision 1025)
+++ /trunk/psLib/test/sysUtils/verified/tst_psLogMsg02.stderr	(revision 1026)
@@ -27,2 +27,8 @@
  <DATE> <TIME> <HOST> |W|           main|Hello World!  My level is 2
  <DATE> <TIME> <HOST> |I|           main|Hello World!  My level is 3
+ <DATE> <TIME> <HOST> |A| Under 15 chars|Hello World!
+ <DATE> <TIME> <HOST> |A|This string is |Hello World!
+ <DATE> <TIME> <HOST> |A|           main|Line #1
+ <DATE> <TIME> <HOST> |A|           main|Line #2
+ <DATE> <TIME> <HOST> |A|           main|Line #3
+ <DATE> <TIME> <HOST> |A|           main|Line #4
Index: /trunk/psLib/test/sysUtils/verified/tst_psLogMsg02.stdout
===================================================================
--- /trunk/psLib/test/sysUtils/verified/tst_psLogMsg02.stdout	(revision 1025)
+++ /trunk/psLib/test/sysUtils/verified/tst_psLogMsg02.stdout	(revision 1026)
@@ -15,2 +15,11 @@
 ---> TESTPOINT PASSED (psLogMsg functions{psLogSetFormat()} | tst_psLogMsg02.c)
 
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psLogMsg02.c                                           |
+|            TestPoint: psLogMsg functions{Output Format}                          |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+
+---> TESTPOINT PASSED (psLogMsg functions{Output Format} | tst_psLogMsg02.c)
+
Index: /trunk/psLib/test/sysUtils/verified/tst_psLogMsg03.stdout
===================================================================
--- /trunk/psLib/test/sysUtils/verified/tst_psLogMsg03.stdout	(revision 1025)
+++ /trunk/psLib/test/sysUtils/verified/tst_psLogMsg03.stdout	(revision 1026)
@@ -8,11 +8,11 @@
 ------------- psLogSetDestination(PS_LOG_TO_STDERR) -------------
 ------------- psLogSetDestination(PS_LOG_TO_STDOUT) -------------
- <DATE> <TIME> <HOST> |A|main           |
+ <DATE> <TIME> <HOST> |A|           main|
 Hello World!  My level is 0
- <DATE> <TIME> <HOST> |E|main           |
+ <DATE> <TIME> <HOST> |E|           main|
 Hello World!  My level is 1
- <DATE> <TIME> <HOST> |W|main           |
+ <DATE> <TIME> <HOST> |W|           main|
 Hello World!  My level is 2
- <DATE> <TIME> <HOST> |I|main           |
+ <DATE> <TIME> <HOST> |I|           main|
 Hello World!  My level is 3
 
