Changeset 1026
- Timestamp:
- Jun 14, 2004, 10:19:30 AM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 10 edited
-
src/dataManip/psStats.c (modified) (1 diff)
-
src/math/psStats.c (modified) (1 diff)
-
test/dataManip/tst_psStats07.c (modified) (1 diff)
-
test/dataManip/verified/tst_psStats07.stdout (modified) (1 diff)
-
test/image/tst_psImageStats02.c (modified) (1 diff)
-
test/image/verified/tst_psImageStats00.stdout (modified) (6 diffs)
-
test/image/verified/tst_psImageStats02.stdout (modified) (2 diffs)
-
test/sysUtils/verified/tst_psLogMsg02.stderr (modified) (1 diff)
-
test/sysUtils/verified/tst_psLogMsg02.stdout (modified) (1 diff)
-
test/sysUtils/verified/tst_psLogMsg03.stdout (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psStats.c
r1022 r1026 265 265 binNum = (int) ((in->data.F32[i] - out->bounds->data.F32[0]) / 266 266 binSize); 267 (out->nums->data.S32[binNum])++; 267 268 // If this is a non-uniform histogram, determining the correct 268 269 // bin number requires a bit more work. -
trunk/psLib/src/math/psStats.c
r1022 r1026 265 265 binNum = (int) ((in->data.F32[i] - out->bounds->data.F32[0]) / 266 266 binSize); 267 (out->nums->data.S32[binNum])++; 267 268 // If this is a non-uniform histogram, determining the correct 268 269 // bin number requires a bit more work. -
trunk/psLib/test/dataManip/tst_psStats07.c
r937 r1026 33 33 float realMeanWithMask = 0.0; 34 34 float realMedianWithMask = 0.0; 35 float realModeWithMask = -1.0;35 float realModeWithMask = 40.0; 36 36 float realStdevWithMask = 0.0; 37 37 float realLQWithMask = 0.0; -
trunk/psLib/test/dataManip/verified/tst_psStats07.stdout
r937 r1026 109 109 \----------------------------------------------------------------------------------/ 110 110 111 The expected Mode was -1.000000; the calculated Mode was -1.000000111 The expected Mode was 40.000000; the calculated Mode was 40.000000 112 112 113 113 ---> TESTPOINT PASSED (psVector functions{PS_STAT_ROBUST_STATS: robust Mode: with vector mask} | tst_psStats07.c) -
trunk/psLib/test/image/tst_psImageStats02.c
r1022 r1026 67 67 68 68 rc = psImageEvalPolynomial(outImage, my2DPoly); 69 for (i=0;i<IMAGE_SIZE;i++) {70 for (j=0;j<IMAGE_SIZE;j++) {71 printf("pixel[%d][%d] is (%f, %f)\n", i, j,72 tmpImage->data.F32[i][j],73 outImage->data.F32[i][j]);74 }75 }69 // for (i=0;i<IMAGE_SIZE;i++) { 70 // for (j=0;j<IMAGE_SIZE;j++) { 71 // printf("pixel[%d][%d] is (%f, %f)\n", i, j, 72 // tmpImage->data.F32[i][j], 73 // outImage->data.F32[i][j]); 74 // } 75 // } 76 76 77 77 psMemCheckCorruption(1); -
trunk/psLib/test/image/verified/tst_psImageStats00.stdout
r1018 r1026 222 222 Bin number 2 bounds: (6.400000 - 9.600000) data (27) 223 223 Bin number 3 bounds: (9.600000 - 12.800000) data (36) 224 Bin number 4 bounds: (12.800000 - 16.000000) data ( 45)225 Bin number 5 bounds: (16.000000 - 19.200001) data ( 74)224 Bin number 4 bounds: (12.800000 - 16.000000) data (62) 225 Bin number 5 bounds: (16.000000 - 19.200001) data (57) 226 226 Bin number 6 bounds: (19.200001 - 22.400000) data (66) 227 227 Bin number 7 bounds: (22.400000 - 25.600000) data (75) 228 228 Bin number 8 bounds: (25.600000 - 28.800001) data (84) 229 Bin number 9 bounds: (28.800001 - 32.000000) data ( 93)230 Bin number 10 bounds: (32.000000 - 35.200001) data ( 118)229 Bin number 9 bounds: (28.800001 - 32.000000) data (124) 230 Bin number 10 bounds: (32.000000 - 35.200001) data (87) 231 231 Bin number 11 bounds: (35.200001 - 38.400002) data (78) 232 232 Bin number 12 bounds: (38.400002 - 41.600002) data (69) 233 233 Bin number 13 bounds: (41.600002 - 44.799999) data (60) 234 Bin number 14 bounds: (44.799999 - 48.000000) data ( 51)235 Bin number 15 bounds: (48.000000 - 51.200001) data ( 54)234 Bin number 14 bounds: (44.799999 - 48.000000) data (66) 235 Bin number 15 bounds: (48.000000 - 51.200001) data (39) 236 236 Bin number 16 bounds: (51.200001 - 54.400002) data (30) 237 237 Bin number 17 bounds: (54.400002 - 57.600002) data (21) … … 251 251 Bin number 2 bounds: (6.400000 - 9.600000) data (27) 252 252 Bin number 3 bounds: (9.600000 - 12.800000) data (36) 253 Bin number 4 bounds: (12.800000 - 16.000000) data ( 45)254 Bin number 5 bounds: (16.000000 - 19.200001) data ( 74)253 Bin number 4 bounds: (12.800000 - 16.000000) data (62) 254 Bin number 5 bounds: (16.000000 - 19.200001) data (57) 255 255 Bin number 6 bounds: (19.200001 - 22.400000) data (66) 256 256 Bin number 7 bounds: (22.400000 - 25.600000) data (75) 257 257 Bin number 8 bounds: (25.600000 - 28.800001) data (84) 258 Bin number 9 bounds: (28.800001 - 32.000000) data ( 93)259 Bin number 10 bounds: (32.000000 - 35.200001) data ( 115)258 Bin number 9 bounds: (28.800001 - 32.000000) data (124) 259 Bin number 10 bounds: (32.000000 - 35.200001) data (84) 260 260 Bin number 11 bounds: (35.200001 - 38.400002) data (66) 261 261 Bin number 12 bounds: (38.400002 - 41.600002) data (48) … … 292 292 Bin number 2 bounds: (9.600000 - 14.400001) data (65) 293 293 Bin number 3 bounds: (14.400001 - 19.200001) data (90) 294 Bin number 4 bounds: (19.200001 - 24.000000) data ( 90)295 Bin number 5 bounds: (24.000000 - 28.800001) data (1 35)294 Bin number 4 bounds: (19.200001 - 24.000000) data (115) 295 Bin number 5 bounds: (24.000000 - 28.800001) data (110) 296 296 Bin number 6 bounds: (28.800001 - 33.600002) data (157) 297 297 Bin number 7 bounds: (33.600002 - 38.400002) data (160) 298 298 Bin number 8 bounds: (38.400002 - 43.200001) data (160) 299 Bin number 9 bounds: (43.200001 - 48.000000) data (1 28)300 Bin number 10 bounds: (48.000000 - 52.800003) data (1 60)299 Bin number 9 bounds: (43.200001 - 48.000000) data (160) 300 Bin number 10 bounds: (48.000000 - 52.800003) data (128) 301 301 Bin number 11 bounds: (52.800003 - 57.600002) data (160) 302 302 Bin number 12 bounds: (57.600002 - 62.400002) data (160) … … 321 321 Bin number 2 bounds: (9.600000 - 14.400001) data (65) 322 322 Bin number 3 bounds: (14.400001 - 19.200001) data (90) 323 Bin number 4 bounds: (19.200001 - 24.000000) data ( 90)324 Bin number 5 bounds: (24.000000 - 28.800001) data (1 35)323 Bin number 4 bounds: (19.200001 - 24.000000) data (115) 324 Bin number 5 bounds: (24.000000 - 28.800001) data (110) 325 325 Bin number 6 bounds: (28.800001 - 33.600002) data (157) 326 326 Bin number 7 bounds: (33.600002 - 38.400002) data (160) 327 327 Bin number 8 bounds: (38.400002 - 43.200001) data (160) 328 Bin number 9 bounds: (43.200001 - 48.000000) data (1 28)329 Bin number 10 bounds: (48.000000 - 52.800003) data (1 54)328 Bin number 9 bounds: (43.200001 - 48.000000) data (160) 329 Bin number 10 bounds: (48.000000 - 52.800003) data (122) 330 330 Bin number 11 bounds: (52.800003 - 57.600002) data (130) 331 331 Bin number 12 bounds: (57.600002 - 62.400002) data (105) … … 362 362 Bin number 2 bounds: (9.600000 - 14.400001) data (65) 363 363 Bin number 3 bounds: (14.400001 - 19.200001) data (90) 364 Bin number 4 bounds: (19.200001 - 24.000000) data ( 90)365 Bin number 5 bounds: (24.000000 - 28.800001) data (1 35)364 Bin number 4 bounds: (19.200001 - 24.000000) data (115) 365 Bin number 5 bounds: (24.000000 - 28.800001) data (110) 366 366 Bin number 6 bounds: (28.800001 - 33.600002) data (157) 367 367 Bin number 7 bounds: (33.600002 - 38.400002) data (160) 368 368 Bin number 8 bounds: (38.400002 - 43.200001) data (160) 369 Bin number 9 bounds: (43.200001 - 48.000000) data (1 28)370 Bin number 10 bounds: (48.000000 - 52.800003) data (1 60)369 Bin number 9 bounds: (43.200001 - 48.000000) data (160) 370 Bin number 10 bounds: (48.000000 - 52.800003) data (128) 371 371 Bin number 11 bounds: (52.800003 - 57.600002) data (160) 372 372 Bin number 12 bounds: (57.600002 - 62.400002) data (160) … … 391 391 Bin number 2 bounds: (9.600000 - 14.400001) data (65) 392 392 Bin number 3 bounds: (14.400001 - 19.200001) data (90) 393 Bin number 4 bounds: (19.200001 - 24.000000) data ( 90)394 Bin number 5 bounds: (24.000000 - 28.800001) data (1 35)393 Bin number 4 bounds: (19.200001 - 24.000000) data (115) 394 Bin number 5 bounds: (24.000000 - 28.800001) data (110) 395 395 Bin number 6 bounds: (28.800001 - 33.600002) data (157) 396 396 Bin number 7 bounds: (33.600002 - 38.400002) data (160) 397 397 Bin number 8 bounds: (38.400002 - 43.200001) data (160) 398 Bin number 9 bounds: (43.200001 - 48.000000) data (1 28)399 Bin number 10 bounds: (48.000000 - 52.800003) data (1 54)398 Bin number 9 bounds: (43.200001 - 48.000000) data (160) 399 Bin number 10 bounds: (48.000000 - 52.800003) data (122) 400 400 Bin number 11 bounds: (52.800003 - 57.600002) data (130) 401 401 Bin number 12 bounds: (57.600002 - 62.400002) data (105) -
trunk/psLib/test/image/verified/tst_psImageStats02.stdout
r1018 r1026 1 (0.000000, 0.000000)2 (1.000000, 0.000000)3 (2.000000, 0.000000)4 (3.000000, 0.000000)5 (4.000000, 0.000000)6 (5.000000, 0.000000)7 (6.000000, 0.000000)8 (7.000000, 0.000000)9 (8.000000, 0.000000)10 (9.000000, 0.000000)11 (1.000000, 0.000000)12 (2.000000, 0.000000)13 (3.000000, 0.000000)14 (4.000000, 0.000000)15 (5.000000, 0.000000)16 (6.000000, 0.000000)17 (7.000000, 0.000000)18 (8.000000, 0.000000)19 (9.000000, 0.000000)20 (10.000000, 0.000000)21 (2.000000, 0.000000)22 (3.000000, 0.000000)23 (4.000000, 0.000000)24 (5.000000, 0.000000)25 (6.000000, 0.000000)26 (7.000000, 0.000000)27 (8.000000, 0.000000)28 (9.000000, 0.000000)29 (10.000000, 0.000000)30 (11.000000, 0.000000)31 (3.000000, 0.000000)32 (4.000000, 0.000000)33 (5.000000, 0.000000)34 (6.000000, 0.000000)35 (7.000000, 0.000000)36 (8.000000, 0.000000)37 (9.000000, 0.000000)38 (10.000000, 0.000000)39 (11.000000, 0.000000)40 (12.000000, 0.000000)41 (4.000000, 0.000000)42 (5.000000, 0.000000)43 (6.000000, 0.000000)44 (7.000000, 0.000000)45 (8.000000, 0.000000)46 (9.000000, 0.000000)47 (10.000000, 0.000000)48 (11.000000, 0.000000)49 (12.000000, 0.000000)50 (13.000000, 0.000000)51 (5.000000, 0.000000)52 (6.000000, 0.000000)53 (7.000000, 0.000000)54 (8.000000, 0.000000)55 (9.000000, 0.000000)56 (10.000000, 0.000000)57 (11.000000, 0.000000)58 (12.000000, 0.000000)59 (13.000000, 0.000000)60 (14.000000, 0.000000)61 (6.000000, 0.000000)62 (7.000000, 0.000000)63 (8.000000, 0.000000)64 (9.000000, 0.000000)65 (10.000000, 0.000000)66 (11.000000, 0.000000)67 (12.000000, 0.000000)68 (13.000000, 0.000000)69 (14.000000, 0.000000)70 (15.000000, 0.000000)71 (7.000000, 0.000000)72 (8.000000, 0.000000)73 (9.000000, 0.000000)74 (10.000000, 0.000000)75 (11.000000, 0.000000)76 (12.000000, 0.000000)77 (13.000000, 0.000000)78 (14.000000, 0.000000)79 (15.000000, 0.000000)80 (16.000000, 0.000000)81 (8.000000, 0.000000)82 (9.000000, 0.000000)83 (10.000000, 0.000000)84 (11.000000, 0.000000)85 (12.000000, 0.000000)86 (13.000000, 0.000000)87 (14.000000, 0.000000)88 (15.000000, 0.000000)89 (16.000000, 0.000000)90 (17.000000, 0.000000)91 (9.000000, 0.000000)92 (10.000000, 0.000000)93 (11.000000, 0.000000)94 (12.000000, 0.000000)95 (13.000000, 0.000000)96 (14.000000, 0.000000)97 (15.000000, 0.000000)98 (16.000000, 0.000000)99 (17.000000, 0.000000)100 (18.000000, 0.000000)101 1 /----------------------------- TESTPOINT ------------------------------------------\ 102 2 | TestFile: tst_psImageStats02.c | … … 114 14 \----------------------------------------------------------------------------------/ 115 15 116 (0.000000, -69840.000000)117 (1.000000, -135200.000000)118 (2.000000, -200560.000000)119 (3.000000, -265920.000000)120 (4.000000, -331280.000000)121 (5.000000, -396640.000000)122 (6.000000, -462000.000000)123 (7.000000, -527360.000000)124 (8.000000, -592720.000000)125 (9.000000, -658080.000000)126 (1.000000, 1108128.000000)127 (2.000000, 2201856.000000)128 (3.000000, 3295584.000000)129 (4.000000, 4389312.000000)130 (5.000000, 5483040.000000)131 (6.000000, 6576768.000000)132 (7.000000, 7670496.000000)133 (8.000000, 8764224.000000)134 (9.000000, 9857952.000000)135 (10.000000, 10951680.000000)136 (2.000000, 27349008.000000)137 (3.000000, 54532576.000000)138 (4.000000, 81716144.000000)139 (5.000000, 108899712.000000)140 (6.000000, 136083280.000000)141 (7.000000, 163266848.000000)142 (8.000000, 190450416.000000)143 (9.000000, 217633984.000000)144 (10.000000, 244817552.000000)145 (11.000000, 272001120.000000)146 (3.000000, 103435392.000000)147 (4.000000, 206308864.000000)148 (5.000000, 309182336.000000)149 (6.000000, 412055808.000000)150 (7.000000, 514929280.000000)151 (8.000000, 617802752.000000)152 (9.000000, 720676224.000000)153 (10.000000, 823549696.000000)154 (11.000000, 926423168.000000)155 (12.000000, 1029296640.000000)156 (4.000000, 254149872.000000)157 (5.000000, 506982624.000000)158 (6.000000, 759815360.000000)159 (7.000000, 1012648128.000000)160 (8.000000, 1265480832.000000)161 (9.000000, 1518313728.000000)162 (10.000000, 1771146368.000000)163 (11.000000, 2023979008.000000)164 (12.000000, 2276811776.000000)165 (13.000000, 2529644800.000000)166 (5.000000, 504275040.000000)167 (6.000000, 1006005760.000000)168 (7.000000, 1507736576.000000)169 (8.000000, 2009467264.000000)170 (9.000000, 2511197952.000000)171 (10.000000, 3012928768.000000)172 (11.000000, 3514659328.000000)173 (12.000000, 4016390144.000000)174 (13.000000, 4518120960.000000)175 (14.000000, 5019851776.000000)176 (6.000000, 878593536.000000)177 (7.000000, 1752830208.000000)178 (8.000000, 2627066880.000000)179 (9.000000, 3501303552.000000)180 (10.000000, 4375540224.000000)181 (11.000000, 5249777152.000000)182 (12.000000, 6124013568.000000)183 (13.000000, 6998250496.000000)184 (14.000000, 7872486912.000000)185 (15.000000, 8746723328.000000)186 (7.000000, 1401887744.000000)187 (8.000000, 2796908032.000000)188 (9.000000, 4191927808.000000)189 (10.000000, 5586948096.000000)190 (11.000000, 6981967872.000000)191 (12.000000, 8376987648.000000)192 (13.000000, 9772007424.000000)193 (14.000000, 11167027200.000000)194 (15.000000, 12562048000.000000)195 (16.000000, 13957066752.000000)196 (8.000000, 2098940672.000000)197 (9.000000, 4187690496.000000)198 (10.000000, 6276440064.000000)199 (11.000000, 8365190144.000000)200 (12.000000, 10453940224.000000)201 (13.000000, 12542689280.000000)202 (14.000000, 14631439360.000000)203 (15.000000, 16720189440.000000)204 (16.000000, 18808938496.000000)205 (17.000000, 20897689600.000000)206 (9.000000, 2994534400.000000)207 (10.000000, 5974630400.000000)208 (11.000000, 8954726400.000000)209 (12.000000, 11934822400.000000)210 (13.000000, 14914918400.000000)211 (14.000000, 17895014400.000000)212 (15.000000, 20875110400.000000)213 (16.000000, 23855204352.000000)214 (17.000000, 26835300352.000000)215 (18.000000, 29815394304.000000)216 16 217 17 ---> TESTPOINT PASSED (psImageStats functions{Calculate Chebyshev Polynomials, no mask} | tst_psImageStats02.c) -
trunk/psLib/test/sysUtils/verified/tst_psLogMsg02.stderr
r1018 r1026 27 27 <DATE> <TIME> <HOST> |W| main|Hello World! My level is 2 28 28 <DATE> <TIME> <HOST> |I| main|Hello World! My level is 3 29 <DATE> <TIME> <HOST> |A| Under 15 chars|Hello World! 30 <DATE> <TIME> <HOST> |A|This string is |Hello World! 31 <DATE> <TIME> <HOST> |A| main|Line #1 32 <DATE> <TIME> <HOST> |A| main|Line #2 33 <DATE> <TIME> <HOST> |A| main|Line #3 34 <DATE> <TIME> <HOST> |A| main|Line #4 -
trunk/psLib/test/sysUtils/verified/tst_psLogMsg02.stdout
r963 r1026 15 15 ---> TESTPOINT PASSED (psLogMsg functions{psLogSetFormat()} | tst_psLogMsg02.c) 16 16 17 /----------------------------- TESTPOINT ------------------------------------------\ 18 | TestFile: tst_psLogMsg02.c | 19 | TestPoint: psLogMsg functions{Output Format} | 20 | TestType: Positive | 21 \----------------------------------------------------------------------------------/ 22 23 24 ---> TESTPOINT PASSED (psLogMsg functions{Output Format} | tst_psLogMsg02.c) 25 -
trunk/psLib/test/sysUtils/verified/tst_psLogMsg03.stdout
r963 r1026 8 8 ------------- psLogSetDestination(PS_LOG_TO_STDERR) ------------- 9 9 ------------- psLogSetDestination(PS_LOG_TO_STDOUT) ------------- 10 <DATE> <TIME> <HOST> |A| main|10 <DATE> <TIME> <HOST> |A| main| 11 11 Hello World! My level is 0 12 <DATE> <TIME> <HOST> |E| main|12 <DATE> <TIME> <HOST> |E| main| 13 13 Hello World! My level is 1 14 <DATE> <TIME> <HOST> |W| main|14 <DATE> <TIME> <HOST> |W| main| 15 15 Hello World! My level is 2 16 <DATE> <TIME> <HOST> |I| main|16 <DATE> <TIME> <HOST> |I| main| 17 17 Hello World! My level is 3 18 18
Note:
See TracChangeset
for help on using the changeset viewer.
