Changeset 659
- Timestamp:
- May 12, 2004, 8:43:42 PM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 4 edited
-
src/Makefile (modified) (2 diffs)
-
src/dataManip/psStats.c (modified) (1 diff)
-
src/math/psStats.c (modified) (1 diff)
-
test/dataManip/tst_psStats00.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/Makefile
r657 r659 3 3 ## Makefile: psLib 4 4 ## 5 ## $Revision: 1.1 0$ $Name: not supported by cvs2svn $6 ## $Date: 2004-05-13 06: 06:33$5 ## $Revision: 1.11 $ $Name: not supported by cvs2svn $ 6 ## $Date: 2004-05-13 06:43:42 $ 7 7 ## 8 8 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 140 140 # the installation 141 141 142 install: installdirs $(INSTALLTARGETS) docs142 install: installdirs $(INSTALLTARGETS) 143 143 install *.h $(includedir) 144 144 install $(TARGET_STATIC) $(libexecdir) -
trunk/psLib/src/dataManip/psStats.c
r657 r659 183 183 } else { 184 184 for (i=0;i<myVector->n;i++) { 185 mean+= maskVector->vec.i[i]; 186 } 187 } 185 mean+= myVector->vec.f[i]; 186 } 187 } 188 mean/= myVector->n; 188 189 return(mean); 189 190 } -
trunk/psLib/src/math/psStats.c
r657 r659 183 183 } else { 184 184 for (i=0;i<myVector->n;i++) { 185 mean+= maskVector->vec.i[i]; 186 } 187 } 185 mean+= myVector->vec.f[i]; 186 } 187 } 188 mean/= myVector->n; 188 189 return(mean); 189 190 } -
trunk/psLib/test/dataManip/tst_psStats00.c
r654 r659 26 26 dummyFloatType.dimen = PS_DIMEN_VECTOR; 27 27 myVector = psVectorAlloc(dummyFloatType, N); 28 myVector->n = N; 28 29 29 30 mean = 0.0; … … 37 38 myStats2 = psArrayStats(myVector, NULL, 0, myStats); 38 39 mean = myStats2->sampleMean; 39 printf("HMMMM mean is %f\n", mean);40 40 41 41 if (mean == realMean) {
Note:
See TracChangeset
for help on using the changeset viewer.
