IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 7, 2008, 3:06:19 PM (18 years ago)
Author:
Paul Price
Message:

Gene says: rms means we have a collection of values for which we want the
root mean square = sqrt(\sum (v2))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStats/src/ppStatsFromMetadataStats.c

    r19966 r19967  
    1818        psStatsOptions option;
    1919        if (!strcasecmp (entry->statistic, "RMS")) {
    20             option = psStatsOptionFromString ("ROBUST_STDEV");
     20            option = psStatsOptionFromString ("ROBUST_MEDIAN");
    2121        } else if (!strcasecmp (entry->statistic, "SUM")) {
    2222            option = psStatsOptionFromString ("SAMPLE_MEAN");
     
    3535        double value;
    3636        if (!strcasecmp (entry->statistic, "RMS")) {
    37             value = stats->robustStdev;
     37            value = sqrt(stats->robustMedian);
    3838        } else if (!strcasecmp (entry->statistic, "SUM")) {
    3939            value = stats->sampleMean * entry->vector->n;
Note: See TracChangeset for help on using the changeset viewer.