Changeset 893 for trunk/psLib/src/dataManip/psStats.c
- Timestamp:
- Jun 6, 2004, 5:14:39 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/dataManip/psStats.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psStats.c
r889 r893 89 89 } 90 90 91 // GUS: Verify that this is the correct action. 92 if (lower > upper) { 93 // psAbort(__func__, "psHistogram requested with lower>upper"); 94 return(NULL); 95 } 96 91 97 newHist = (psHistogram *) psAlloc(sizeof(psHistogram)); 92 98 newHist->bounds = psVectorAlloc(n+1, PS_TYPE_F32); … … 115 121 psHistogram *newHist = NULL; 116 122 int i; 123 124 // GUS: Verify that this is the correct action. 125 if (bounds == NULL) { 126 // psAbort(__func__, "psHistogram requested with NULL bounds"); 127 return(NULL); 128 } 117 129 118 130 newHist = (psHistogram *) psAlloc(sizeof(psHistogram)); … … 166 178 int binNum = 0; 167 179 int numBins = 0; 180 181 // GUS: Verify that this is the correct action. 182 if (out == NULL) { 183 // psAbort(__func__, "psHistogram requested with NULL struct"); 184 return(NULL); 185 } 186 187 // GUS: Verify that this is the correct action. 188 if (in == NULL) { 189 // psAbort(__func__, "psHistogram requested with NULL struct"); 190 return(out); 191 } 168 192 169 193 numBins = out->nums->n; … … 1051 1075 { 1052 1076 if (in == NULL) { 1053 psAbort(__func__, "Input data vector (in) was NULL."); 1077 return(stats); 1078 } 1079 if (stats == NULL) { 1080 return(NULL); 1054 1081 } 1055 1082
Note:
See TracChangeset
for help on using the changeset viewer.
