Changeset 4973
- Timestamp:
- Sep 7, 2005, 2:29:06 PM (21 years ago)
- Location:
- trunk/psLib/test/math
- Files:
-
- 12 edited
-
tst_psFunc01.c (modified) (5 diffs)
-
tst_psFunc02.c (modified) (11 diffs)
-
tst_psFunc03.c (modified) (3 diffs)
-
tst_psFunc04.c (modified) (3 diffs)
-
tst_psFunc05.c (modified) (2 diffs)
-
tst_psFunc07.c (modified) (3 diffs)
-
tst_psMinimize04.c (modified) (1 diff)
-
tst_psMinimize04_F32.c (modified) (1 diff)
-
tst_psMinimize04b.c (modified) (1 diff)
-
tst_psMinimize04b_F32.c (modified) (1 diff)
-
verified/tst_psFunc01.stdout (modified) (3 diffs)
-
verified/tst_psFunc02.stdout (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/math/tst_psFunc01.c
r4731 r4973 9 9 #include "psTest.h" 10 10 #include "psMemory.h" 11 #include "ps Functions.h"11 #include "psPolynomial.h" 12 12 #define MY_MEAN 30.0 13 13 #define MY_STDEV 2.0 … … 22 22 psVector *myGaussData = NULL; 23 23 printPositiveTestHeader(stdout, 24 "ps Functionsfunctions",24 "psPolynomial functions", 25 25 "psGaussian()"); 26 26 … … 43 43 44 44 printFooter(stdout, 45 "ps Functionsfunctions",45 "psPolynomial functions", 46 46 "psGaussian()", 47 47 testStatus); … … 49 49 50 50 printPositiveTestHeader(stdout, 51 "ps Functionsfunctions",51 "psPolynomial functions", 52 52 "p_psGaussianDev()"); 53 53 … … 70 70 71 71 printFooter(stdout, 72 "ps Functionsfunctions",72 "psPolynomial functions", 73 73 "p_psGaussianDev()", 74 74 testStatus); -
trunk/psLib/test/math/tst_psFunc02.c
r4731 r4973 8 8 #include "psTest.h" 9 9 #include "psMemory.h" 10 #include "ps Functions.h"10 #include "psSpline.h" 11 11 12 12 #define N 4 … … 75 75 76 76 printFooter(stdout, 77 "ps Functionsfunctions",77 "psSpline functions", 78 78 "psSpline1DAlloc(): linear, normal", 79 79 testStatus); … … 102 102 103 103 printFooter(stdout, 104 "ps Functionsfunctions",104 "psSpline functions", 105 105 "psSpline1DAlloc(): linear, min/max are equal", 106 106 testStatus); … … 157 157 158 158 printFooter(stdout, 159 "ps Functionsfunctions",159 "psSpline functions", 160 160 "psSpline1DAlloc(): linear, min > max.", 161 161 testStatus); … … 212 212 213 213 printFooter(stdout, 214 "ps Functionsfunctions",214 "psSpline functions", 215 215 "psSpline1DAlloc(): cubic, normal", 216 216 testStatus); … … 239 239 240 240 printFooter(stdout, 241 "ps Functionsfunctions",241 "psSpline functions", 242 242 "psSpline1DAlloc(): cubic, min/max are equal", 243 243 testStatus); … … 294 294 295 295 printFooter(stdout, 296 "ps Functionsfunctions",296 "psSpline functions", 297 297 "psSpline1DAlloc(): cubic, min > max.", 298 298 testStatus); … … 355 355 } 356 356 printFooter(stdout, 357 "ps Functionsfunctions",357 "psSpline functions", 358 358 "psSpline1DAllocGeneric(): linear, normal", 359 359 testStatus); … … 386 386 } 387 387 printFooter(stdout, 388 "ps Functionsfunctions",388 "psSpline functions", 389 389 "psSpline1DAllocGeneric(): negative order", 390 390 testStatus); … … 413 413 } 414 414 printFooter(stdout, 415 "ps Functionsfunctions",415 "psSpline functions", 416 416 "psSpline1DAllocGeneric(): bound equal to NULL", 417 417 testStatus); … … 440 440 } 441 441 printFooter(stdout, 442 "ps Functionsfunctions",442 "psSpline functions", 443 443 "psSpline1DAllocGeneric(): bounds with zero elements", 444 444 testStatus); -
trunk/psLib/test/math/tst_psFunc03.c
r4731 r4973 9 9 #include "psTest.h" 10 10 #include "psMemory.h" 11 #include "ps Functions.h"11 #include "psSpline.h" 12 12 13 13 #define N 10 … … 83 83 84 84 printFooter(stdout, 85 "ps Functionsfunctions",85 "psSpline functions", 86 86 "psSpline1DAllocGeneric(): linear", 87 87 testStatus); … … 144 144 145 145 printFooter(stdout, 146 "ps Functionsfunctions",146 "psSpline functions", 147 147 "psSpline1DAllocGeneric(): cubic", 148 148 testStatus); -
trunk/psLib/test/math/tst_psFunc04.c
r4731 r4973 13 13 #include "psTest.h" 14 14 #include "psMemory.h" 15 #include "ps Functions.h"15 #include "psSpline.h" 16 16 17 17 #define N 8 … … 65 65 66 66 printFooter(stdout, 67 "ps Functionsfunctions",67 "psSpline functions", 68 68 "psSpline1DAlloc()", 69 69 testStatus); … … 120 120 121 121 printFooter(stdout, 122 "ps Functionsfunctions",122 "psSpline functions", 123 123 "psSpline1DAlloc()", 124 124 testStatus); -
trunk/psLib/test/math/tst_psFunc05.c
r4731 r4973 14 14 #include "psTest.h" 15 15 #include "psMemory.h" 16 #include "ps Functions.h"16 #include "psSpline.h" 17 17 #define N 8 18 18 #define SPLINE_ORDER 1 … … 76 76 77 77 printFooter(stdout, 78 "ps Functionsfunctions",78 "psSpline functions", 79 79 "psSpline1DAlloc()", 80 80 testStatus); -
trunk/psLib/test/math/tst_psFunc07.c
r4580 r4973 17 17 #include "psTest.h" 18 18 #include "psMemory.h" 19 #include "ps Functions.h"19 #include "psSpline.h" 20 20 21 21 #define VERBOSE 0 … … 111 111 112 112 printFooter(stdout, 113 "ps Functionsfunctions",113 "psSpline functions", 114 114 "psSpline1DAlloc(), psVectorFitSpline1D, psSpline1DEvalVector: F32 versions", 115 115 testStatus); … … 194 194 195 195 printFooter(stdout, 196 "ps Functionsfunctions",196 "psSpline functions", 197 197 "psSpline1DAlloc(), psVectorFitSpline1D, psSpline1DEvalVector: F64 versions", 198 198 testStatus); -
trunk/psLib/test/math/tst_psMinimize04.c
r4859 r4973 18 18 #include "psVector.h" 19 19 #include "psImage.h" 20 #include "psFunctions.h"21 20 #include "psMinimize.h" 22 21 #include <math.h> -
trunk/psLib/test/math/tst_psMinimize04_F32.c
r4859 r4973 18 18 #include "psVector.h" 19 19 #include "psImage.h" 20 #include "psFunctions.h"21 20 #include "psMinimize.h" 22 21 #include <math.h> -
trunk/psLib/test/math/tst_psMinimize04b.c
r4859 r4973 8 8 #include "psVector.h" 9 9 #include "psImage.h" 10 #include "psFunctions.h"11 10 #include "psMinimize.h" 12 11 #include <math.h> -
trunk/psLib/test/math/tst_psMinimize04b_F32.c
r4859 r4973 8 8 #include "psVector.h" 9 9 #include "psImage.h" 10 #include "psFunctions.h"11 10 #include "psMinimize.h" 12 11 #include <math.h> -
trunk/psLib/test/math/verified/tst_psFunc01.stdout
r4862 r4973 1 1 /***************************** TESTPOINT ******************************************\ 2 2 * TestFile: tst_psFunc01.c * 3 * TestPoint: ps Functions functions{psGaussian()}*3 * TestPoint: psPolynomial functions{psGaussian()} * 4 4 * TestType: Positive * 5 5 \**********************************************************************************/ … … 66 66 NON-normal psGaussian(58.000000) is 0.000000 67 67 68 ---> TESTPOINT PASSED (ps Functionsfunctions{psGaussian()} | tst_psFunc01.c)68 ---> TESTPOINT PASSED (psPolynomial functions{psGaussian()} | tst_psFunc01.c) 69 69 70 70 /***************************** TESTPOINT ******************************************\ 71 71 * TestFile: tst_psFunc01.c * 72 * TestPoint: ps Functions functions{p_psGaussianDev()}*72 * TestPoint: psPolynomial functions{p_psGaussianDev()} * 73 73 * TestType: Positive * 74 74 \**********************************************************************************/ … … 105 105 Gaussian Deviate [29] is 31.395319 106 106 107 ---> TESTPOINT PASSED (ps Functionsfunctions{p_psGaussianDev()} | tst_psFunc01.c)107 ---> TESTPOINT PASSED (psPolynomial functions{p_psGaussianDev()} | tst_psFunc01.c) 108 108 -
trunk/psLib/test/math/verified/tst_psFunc02.stdout
r4547 r4973 11 11 psSpline1D->knots->data.F32[4] is 10.000000 12 12 13 ---> TESTPOINT PASSED (ps Functionsfunctions{psSpline1DAlloc(): linear, normal} | tst_psFunc02.c)13 ---> TESTPOINT PASSED (psSpline functions{psSpline1DAlloc(): linear, normal} | tst_psFunc02.c) 14 14 15 15 /***************************** TESTPOINT ******************************************\ … … 20 20 21 21 22 ---> TESTPOINT PASSED (ps Functionsfunctions{psSpline1DAlloc(): linear, min/max are equal} | tst_psFunc02.c)22 ---> TESTPOINT PASSED (psSpline functions{psSpline1DAlloc(): linear, min/max are equal} | tst_psFunc02.c) 23 23 24 24 /***************************** TESTPOINT ******************************************\ … … 34 34 psSpline1D->knots->data.F32[4] is -1.000000 35 35 36 ---> TESTPOINT PASSED (ps Functionsfunctions{psSpline1DAlloc(): linear, min > max.} | tst_psFunc02.c)36 ---> TESTPOINT PASSED (psSpline functions{psSpline1DAlloc(): linear, min > max.} | tst_psFunc02.c) 37 37 38 38 /***************************** TESTPOINT ******************************************\ … … 48 48 psSpline1D->data.F32[4] is 10.000000 49 49 50 ---> TESTPOINT PASSED (ps Functionsfunctions{psSpline1DAlloc(): cubic, normal} | tst_psFunc02.c)50 ---> TESTPOINT PASSED (psSpline functions{psSpline1DAlloc(): cubic, normal} | tst_psFunc02.c) 51 51 52 52 /***************************** TESTPOINT ******************************************\ … … 57 57 58 58 59 ---> TESTPOINT PASSED (ps Functionsfunctions{psSpline1DAlloc(): cubic, min/max are equal} | tst_psFunc02.c)59 ---> TESTPOINT PASSED (psSpline functions{psSpline1DAlloc(): cubic, min/max are equal} | tst_psFunc02.c) 60 60 61 61 /***************************** TESTPOINT ******************************************\ … … 71 71 psSpline1D->knots->data.F32[4] is -1.000000 72 72 73 ---> TESTPOINT PASSED (ps Functionsfunctions{psSpline1DAlloc(): cubic, min > max.} | tst_psFunc02.c)73 ---> TESTPOINT PASSED (psSpline functions{psSpline1DAlloc(): cubic, min > max.} | tst_psFunc02.c) 74 74 75 75 /***************************** TESTPOINT ******************************************\ … … 85 85 psSpline1D->knots->data.F32[4] is 10.000000 86 86 87 ---> TESTPOINT PASSED (ps Functionsfunctions{psSpline1DAllocGeneric(): linear, normal} | tst_psFunc02.c)87 ---> TESTPOINT PASSED (psSpline functions{psSpline1DAllocGeneric(): linear, normal} | tst_psFunc02.c) 88 88 89 89 /***************************** TESTPOINT ******************************************\ … … 94 94 95 95 96 ---> TESTPOINT PASSED (ps Functionsfunctions{psSpline1DAllocGeneric(): bound equal to NULL} | tst_psFunc02.c)96 ---> TESTPOINT PASSED (psSpline functions{psSpline1DAllocGeneric(): bound equal to NULL} | tst_psFunc02.c) 97 97 98 98 /***************************** TESTPOINT ******************************************\ … … 103 103 104 104 105 ---> TESTPOINT PASSED (ps Functionsfunctions{psSpline1DAllocGeneric(): bounds with zero elements} | tst_psFunc02.c)105 ---> TESTPOINT PASSED (psSpline functions{psSpline1DAllocGeneric(): bounds with zero elements} | tst_psFunc02.c) 106 106
Note:
See TracChangeset
for help on using the changeset viewer.
