Changeset 25027 for branches/pap/psphot/src/psphotDiagnosticPlots.c
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphotDiagnosticPlots.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/psphot
- Property svn:mergeinfo deleted
-
branches/pap/psphot/src
- Property svn:ignore
-
old new 17 17 growthTest 18 18 psphotVersionDefinitions.h 19 psphotMomentsStudy
-
- Property svn:ignore
-
branches/pap/psphot/src/psphotDiagnosticPlots.c
r21108 r25027 40 40 41 41 psStats *stats = psStatsAlloc (PS_STAT_MAX | PS_STAT_MIN); 42 psVectorStats (stats, values, NULL, NULL, 0); 42 if (!psVectorStats (stats, values, NULL, NULL, 0)) { 43 psError(PS_ERR_UNKNOWN, false, "failure to measure stats for histogram"); 44 return false; 45 } 43 46 44 47 psHistogram *histogram = psHistogramAlloc (stats->min, stats->max, 1000); … … 63 66 psStatsInit (stats); 64 67 stats->options = PS_STAT_MAX | PS_STAT_MIN; 65 psVectorStats (stats, histogram->nums, NULL, NULL, 0); 68 if (!psVectorStats (stats, histogram->nums, NULL, NULL, 0)) { 69 psError(PS_ERR_UNKNOWN, false, "failure to measure stats for histogram"); 70 return false; 71 } 66 72 67 73 // scale the plot to hold the histogram … … 100 106 psStatsInit (stats); 101 107 stats->options = PS_STAT_MAX | PS_STAT_MIN; 102 psVectorStats (stats, histogram->nums, NULL, NULL, 0); 108 if (!psVectorStats (stats, histogram->nums, NULL, NULL, 0)) { 109 psError(PS_ERR_UNKNOWN, false, "failure to measure stats for histogram"); 110 return false; 111 } 103 112 104 113 // scale the plot to hold the histogram
Note:
See TracChangeset
for help on using the changeset viewer.
