Changeset 1861 for trunk/psLib/test/dataManip
- Timestamp:
- Sep 22, 2004, 8:12:22 PM (22 years ago)
- Location:
- trunk/psLib/test/dataManip
- Files:
-
- 3 edited
-
tst_psFunc04.c (modified) (2 diffs)
-
tst_psFunc05.c (modified) (2 diffs)
-
tst_psFunc07.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/dataManip/tst_psFunc04.c
r1811 r1861 2 2 This routine must ensure that the psSpline1DEval() function works 3 3 properly. It creates a spline with psSpline1DAlloc(), creates a set of 4 data values, sets the spline polynomials with ps Spline1DGen(), then4 data values, sets the spline polynomials with psVectorFitSpline1D(), then 5 5 calls psSpline1DEval() on new data values and ensures that the results 6 6 are correct. … … 41 41 data->data.F32[i] = tmpSpline->domains[i]; 42 42 } 43 psVectorFitSpline1D(tmpSpline, data, data, NULL); 43 44 44 psSpline1DGen(tmpSpline, data);45 45 for (i=0;i<N+1;i++) { 46 46 x = 0.5 + (float) i+1; -
trunk/psLib/test/dataManip/tst_psFunc05.c
r1811 r1861 2 2 This routine must ensure that the psSpline1DEval() function works 3 3 properly. It creates a spline with psSpline1DAlloc(), creates a set of 4 data values, sets the spline polynomials with ps Spline1DGen(), then4 data values, sets the spline polynomials with psVectorFitSpline1D(), then 5 5 calls psSpline1DEval() on new data values and ensures that the results 6 6 are correct. … … 44 44 } 45 45 46 ps Spline1DGen(tmpSpline, data);46 psVectorFitSpline1D(tmpSpline, data, data, NULL); 47 47 48 48 for (i=0;i<N+1;i++) { -
trunk/psLib/test/dataManip/tst_psFunc07.c
r1858 r1861 1 1 /***************************************************************************** 2 This routine must ensure that the psSpline1DEval() function works 3 properly. It creates a spline with psSpline1DAlloc(), creates a set of 4 data values, sets the spline polynomials with psSpline1DGen(), then 5 calls psSpline1DEval() on new data values and ensures that the results 6 are correct. 2 This routine must ensure that the psVectorFitSpline1D() function works 3 properly. It creates a spline with psSpline1DAlloc(), creates a set of data 4 values, sets the spline polynomials with psVectorFitSpline1D(), then calls 5 psSpline1DEval() on new data values and ensures that the results are correct. 7 6 8 XXX: figure out the memory deallocator 7 XXX: figure out the memory deallocator 8 9 XXX: The interpolated values are not all that good. However, they do agree 10 with the NR version of the code. 9 11 *****************************************************************************/ 10 12 #include <stdio.h>
Note:
See TracChangeset
for help on using the changeset viewer.
