Changeset 5117
- Timestamp:
- Sep 23, 2005, 3:10:00 PM (21 years ago)
- Location:
- trunk/psLib/test/math
- Files:
-
- 13 edited
-
tst_psHist00.c (modified) (1 diff)
-
tst_psHist01.c (modified) (1 diff)
-
tst_psHist03.c (modified) (1 diff)
-
tst_psStats00.c (modified) (2 diffs)
-
tst_psStats01.c (modified) (2 diffs)
-
tst_psStats02.c (modified) (2 diffs)
-
tst_psStats03.c (modified) (1 diff)
-
tst_psStats05.c (modified) (2 diffs)
-
tst_psStats06.c (modified) (1 diff)
-
tst_psStats07.c (modified) (2 diffs)
-
tst_psStats08.c (modified) (1 diff)
-
tst_psStats09.c (modified) (1 diff)
-
verified/tst_psStats07.stderr (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/math/tst_psHist00.c
r4859 r5117 13 13 { 14 14 psLogSetFormat("HLNM"); 15 // 16 // We list pertinent psStats.c functions here for debugging ease. 17 // 18 psTraceSetLevel(".", 0); 19 psTraceSetLevel("p_psVectorBinDisect", 0); 20 psTraceSetLevel("p_psGetStatValue", 0); 21 psTraceSetLevel("psHistogramAlloc", 0); 22 psTraceSetLevel("psHistogramAllocGeneric", 0); 23 psTraceSetLevel("UpdateHistogramBins", 0); 24 psTraceSetLevel("psVectorHistogram", 0); 15 25 psHistogram *myHist = NULL; 16 26 psS32 testStatus = true; -
trunk/psLib/test/math/tst_psHist01.c
r4859 r5117 13 13 { 14 14 psLogSetFormat("HLNM"); 15 // 16 // We list pertinent psStats.c functions here for debugging ease. 17 // 18 psTraceSetLevel(".", 0); 19 psTraceSetLevel("p_psVectorBinDisect", 0); 20 psTraceSetLevel("p_psGetStatValue", 0); 21 psTraceSetLevel("psHistogramAlloc", 0); 22 psTraceSetLevel("psHistogramAllocGeneric", 0); 23 psTraceSetLevel("UpdateHistogramBins", 0); 24 psTraceSetLevel("psVectorHistogram", 0); 15 25 psHistogram *myHist = NULL; 16 26 psVector *myBounds = NULL; -
trunk/psLib/test/math/tst_psHist03.c
r4859 r5117 15 15 { 16 16 psLogSetFormat("HLNM"); 17 // 18 // We list pertinent psStats.c functions here for debugging ease. 19 // 20 psTraceSetLevel(".", 0); 21 psTraceSetLevel("p_psVectorBinDisect", 0); 22 psTraceSetLevel("p_psGetStatValue", 0); 23 psTraceSetLevel("psHistogramAlloc", 0); 24 psTraceSetLevel("psHistogramAllocGeneric", 0); 25 psTraceSetLevel("UpdateHistogramBins", 0); 26 psTraceSetLevel("psVectorHistogram", 0); 17 27 psHistogram *myHist = NULL; 18 28 psVector *myBounds = NULL; -
trunk/psLib/test/math/tst_psStats00.c
r4859 r5117 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 8-24 01:24:24$13 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-09-24 01:10:00 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 66 66 psLogSetFormat("HLNM"); 67 67 psLogSetLevel(PS_LOG_INFO); 68 // 69 // We list pertinent psStats.c functions here for debugging ease. 70 // 71 psTraceSetLevel(".", 0); 72 psTraceSetLevel("p_psGetStatValue", 0); 73 psTraceSetLevel("p_psVectorSampleMean", 0); 74 psTraceSetLevel("p_psVectorMax", 0); 75 psTraceSetLevel("p_psVectorMin", 0); 76 psTraceSetLevel("p_psVectorNValues", 0); 77 psTraceSetLevel("p_psNormalizeVectorRange", 0); 78 psTraceSetLevel("psStatsAlloc", 0); 79 psTraceSetLevel("p_psConvertToF32", 0); 80 psTraceSetLevel("psVectorStats", 0); 68 81 69 82 return ( ! runTestSuite(stderr, "psVectorStats",tests,argc,argv) ); -
trunk/psLib/test/math/tst_psStats01.c
r4859 r5117 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 8-24 01:24:24$13 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-09-24 01:10:00 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 56 56 psLogSetFormat("HLNM"); 57 57 psLogSetLevel(PS_LOG_INFO); 58 // 59 // We list pertinent psStats.c functions here for debugging ease. 60 // 61 psTraceSetLevel(".", 0); 62 psTraceSetLevel("p_psGetStatValue", 0); 63 psTraceSetLevel("p_psVectorMax", 0); 64 psTraceSetLevel("p_psVectorMin", 0); 65 psTraceSetLevel("p_psVectorCheckNonEmpty", 0); 66 psTraceSetLevel("p_psVectorNValues", 0); 67 psTraceSetLevel("psStatsAlloc", 0); 68 psTraceSetLevel("p_psConvertToF32", 0); 69 psTraceSetLevel("psVectorStats", 0); 58 70 59 71 return ( ! runTestSuite(stderr, "psVectorStats", tests, argc, argv) ); -
trunk/psLib/test/math/tst_psStats02.c
r4859 r5117 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 8-24 01:24:24$13 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-09-24 01:10:00 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 56 56 psLogSetFormat("HLNM"); 57 57 psLogSetLevel(PS_LOG_INFO); 58 // 59 // We list pertinent psStats.c functions here for debugging ease. 60 // 61 psTraceSetLevel(".", 0); 62 psTraceSetLevel("p_psGetStatValue", 0); 63 psTraceSetLevel("p_psVectorMax", 0); 64 psTraceSetLevel("p_psVectorMin", 0); 65 psTraceSetLevel("p_psVectorCheckNonEmpty", 0); 66 psTraceSetLevel("p_psVectorNValues", 0); 67 psTraceSetLevel("p_psNormalizeVectorRange", 0); 68 psTraceSetLevel("psStatsAlloc", 0); 69 psTraceSetLevel("p_psConvertToF32", 0); 70 psTraceSetLevel("psVectorStats", 0); 58 71 59 72 return ( ! runTestSuite(stderr, "psVectorStats", tests, argc, argv) ); -
trunk/psLib/test/math/tst_psStats03.c
r4859 r5117 15 15 { 16 16 psLogSetFormat("HLNM"); 17 // 18 // We list pertinent psStats.c functions here for debugging ease. 19 // 20 psTraceSetLevel(".", 0); 21 psTraceSetLevel("p_psGetStatValue", 0); 22 psTraceSetLevel("p_psVectorSampleMean", 0); 23 psTraceSetLevel("p_psVectorCheckNonEmpty", 0); 24 psTraceSetLevel("p_psVectorNValues", 0); 25 psTraceSetLevel("p_psVectorSampleMedian", 0); 26 psTraceSetLevel("psStatsAlloc", 0); 27 psTraceSetLevel("p_psConvertToF32", 0); 28 psTraceSetLevel("psVectorStats", 0); 29 17 30 psStats *myStats = NULL; 18 31 psS32 testStatus = true; -
trunk/psLib/test/math/tst_psStats05.c
r4859 r5117 1 1 /***************************************************************************** 2 2 This routine must ensure that the psStats structure is correctly 3 allocated and deallocated by the procedure psArrayStats(). 3 allocated and deallocated by the procedure psStatsAlloc(). 4 5 XXX: This should be test 00. 4 6 *****************************************************************************/ 5 7 #include <stdio.h> … … 11 13 { 12 14 psLogSetFormat("HLNM"); 15 // 16 // We list pertinent psStats.c functions here for debugging ease. 17 // 18 psTraceSetLevel(".", 0); 19 psTraceSetLevel("psStatsAlloc", 0); 20 13 21 psStats *myStats = NULL; 14 22 psS32 testStatus = true; -
trunk/psLib/test/math/tst_psStats06.c
r4859 r5117 18 18 { 19 19 psLogSetFormat("HLNM"); 20 // 21 // We list pertinent psStats.c functions here for debugging ease. 22 // 23 psTraceSetLevel(".", 0); 24 psTraceSetLevel("p_psGetStatValue", 0); 25 psTraceSetLevel("p_psVectorSampleMean", 0); 26 psTraceSetLevel("p_psVectorMax", 0); 27 psTraceSetLevel("p_psVectorMin", 0); 28 psTraceSetLevel("p_psVectorCheckNonEmpty", 0); 29 psTraceSetLevel("p_psVectorNValues", 0); 30 psTraceSetLevel("p_psVectorSampleStdevOLD", 0); 31 psTraceSetLevel("p_psVectorSampleStdev", 0); 32 psTraceSetLevel("psStatsAlloc", 0); 33 psTraceSetLevel("p_psConvertToF32", 0); 34 psTraceSetLevel("psVectorStats", 0); 35 20 36 psStats *myStats = NULL; 21 37 psS32 testStatus = true; -
trunk/psLib/test/math/tst_psStats07.c
r5116 r5117 489 489 { 490 490 psLogSetFormat("HLNM"); 491 // 492 // We list pertinent psStats.c functions here for debugging ease. 493 // 491 494 psTraceSetLevel(".", 0); 492 495 psTraceSetLevel("psGaussian", 0); 496 psTraceSetLevel("p_psGetStatValue", 0); 497 psTraceSetLevel("p_psVectorMax", 0); 498 psTraceSetLevel("p_psVectorMin", 0); 499 psTraceSetLevel("p_psVectorCheckNonEmpty", 0); 500 psTraceSetLevel("p_psNormalizeVectorRange", 0); 501 psTraceSetLevel("p_ps1DPolyMedian", 0); 502 psTraceSetLevel("fitQuadraticSearchForYThenReturnX", 0); 503 psTraceSetLevel("PsVectorDup", 0); 504 psTraceSetLevel("psMinimizeLMChi2Gauss1D", 0); 505 psTraceSetLevel("LinInterpolate", 0); 506 psTraceSetLevel("p_psVectorRobustStats", 0); 507 psTraceSetLevel("psStatsAlloc", 0); 508 psTraceSetLevel("psHistogramAlloc", 0); 509 psTraceSetLevel("psHistogramAllocGeneric", 0); 510 psTraceSetLevel("UpdateHistogramBins", 0); 511 psTraceSetLevel("psVectorHistogram", 0); 512 psTraceSetLevel("p_psConvertToF32", 0); 513 psTraceSetLevel("psVectorStats", 0); 493 514 psBool rc0 = t00(); 494 515 psBool rc1 = t01(); … … 500 521 } 501 522 502 return( rc0 & rc1);523 return(!(rc0 & rc1)); 503 524 } -
trunk/psLib/test/math/tst_psStats08.c
r4859 r5117 19 19 { 20 20 psLogSetFormat("HLNM"); 21 // 22 // We list pertinent psStats.c functions here for debugging ease. 23 // 24 psTraceSetLevel(".", 0); 25 psTraceSetLevel("p_psGetStatValue", 0); 26 psTraceSetLevel("p_psVectorMax", 0); 27 psTraceSetLevel("p_psVectorMin", 0); 28 psTraceSetLevel("p_psVectorCheckNonEmpty", 0); 29 psTraceSetLevel("p_psVectorNValues", 0); 30 psTraceSetLevel("p_psVectorSampleQuartiles", 0); 31 psTraceSetLevel("psStatsAlloc", 0); 32 psTraceSetLevel("p_psConvertToF32", 0); 33 psTraceSetLevel("psVectorStats", 0); 34 35 21 36 psStats *myStats = NULL; 22 37 psS32 testStatus = true; -
trunk/psLib/test/math/tst_psStats09.c
r4859 r5117 22 22 { 23 23 psLogSetFormat("HLNM"); 24 // 25 // We list pertinent psStats.c functions here for debugging ease. 26 // 27 psTraceSetLevel(".", 0); 28 psTraceSetLevel("p_psGetStatValue", 0); 29 psTraceSetLevel("p_psVectorSampleMean", 0); 30 psTraceSetLevel("p_psVectorMax", 0); 31 psTraceSetLevel("p_psVectorMin", 0); 32 psTraceSetLevel("p_psVectorCheckNonEmpty", 0); 33 psTraceSetLevel("p_psVectorNValues", 0); 34 psTraceSetLevel("p_psVectorClippedStats", 0); 35 psTraceSetLevel("p_psNormalizeVectorRange", 0); 36 psTraceSetLevel("psStatsAlloc", 0); 37 psTraceSetLevel("p_psConvertToF32", 0); 38 psTraceSetLevel("psVectorStats", 0); 39 24 40 psStats *myStats = NULL; 25 41 psS32 testStatus = true; -
trunk/psLib/test/math/verified/tst_psStats07.stderr
r4547 r5117 1 <DATE><TIME>|<HOST>|W|p_psVectorRobustStats2 WARNING: the fitted Gaussian has more than 10% error for the stdev.3 <DATE><TIME>|<HOST>|W|p_psVectorRobustStats4 WARNING: Using the calculated stdev instead of Gaussian-fitted stdev.5 <DATE><TIME>|<HOST>|W|p_psVectorRobustStats6 WARNING: the fitted Gaussian has more than 10% error for the stdev.7 <DATE><TIME>|<HOST>|W|p_psVectorRobustStats8 WARNING: Using the calculated stdev instead of Gaussian-fitted stdev.
Note:
See TracChangeset
for help on using the changeset viewer.
