Changeset 19966 for trunk/ppStats/src/ppStatsFromMetadataStats.c
- Timestamp:
- Oct 7, 2008, 2:52:13 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppStats/src/ppStatsFromMetadataStats.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStats/src/ppStatsFromMetadataStats.c
r19965 r19966 2 2 3 3 // calculate the stats for the non-constant entries (already calculated) 4 bool ppStatsFromMetadataStats(psArray *entries) {5 4 bool ppStatsFromMetadataStats(psArray *entries) 5 { 6 6 for (int i = 0; i < entries->n; i++) { 7 7 ppStatsEntry *entry = entries->data[i]; … … 18 18 psStatsOptions option; 19 19 if (!strcasecmp (entry->statistic, "RMS")) { 20 option = psStatsOptionFromString ("ROBUST_ MEDIAN");20 option = psStatsOptionFromString ("ROBUST_STDEV"); 21 21 } else if (!strcasecmp (entry->statistic, "SUM")) { 22 22 option = psStatsOptionFromString ("SAMPLE_MEAN"); … … 35 35 double value; 36 36 if (!strcasecmp (entry->statistic, "RMS")) { 37 value = s qrt(value);37 value = stats->robustStdev; 38 38 } else if (!strcasecmp (entry->statistic, "SUM")) { 39 39 value = stats->sampleMean * entry->vector->n;
Note:
See TracChangeset
for help on using the changeset viewer.
