6374e6fcfd6b6234d3f6c30ef1eb9ec4eaa80a41 braney Wed Jun 1 13:48:05 2016 -0700 fix up the way that the aveStats library calculates the median and quartiles diff --git src/inc/aveStats.h src/inc/aveStats.h index 3d39fc5..b0315cf 100644 --- src/inc/aveStats.h +++ src/inc/aveStats.h @@ -1,22 +1,23 @@ #ifndef AVESTATS_H #define AVESTATS_H #include struct aveStats { double q1; double median; double q3; double average; double minVal; double maxVal; unsigned count; double total; double var; double stdDev; }; -struct aveStats *aveStatsCalc(double *array, int count); +struct aveStats *aveStatsCalc(double *array, unsigned count); +/* Compute statistics on an unsorted array of doubles. Use Tukey hinge method for quartiles. */ #endif