src/inc/common.h 1.167

1.167 2010/03/10 19:44:59 kent
Adding doubleBoxWhiskerCalc to library.
Index: src/inc/common.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/common.h,v
retrieving revision 1.166
retrieving revision 1.167
diff -b -B -U 4 -r1.166 -r1.167
--- src/inc/common.h	4 Jan 2010 19:12:40 -0000	1.166
+++ src/inc/common.h	10 Mar 2010 19:44:59 -0000	1.167
@@ -452,8 +452,12 @@
 double doubleMedian(int count, double *array);
 /* Return median value in array.  This will sort
  * the array as a side effect. */
 
+void doubleBoxWhiskerCalc(int count, double *array, double *retMin, 
+	double *retQ1, double *retMedian, double *retQ3, double *retMax);
+/* Calculate what you need to draw a box and whiskers plot from an array of doubles. */
+
 struct slDouble
 /* List of double-precision numbers. */
     {
     struct slDouble *next;	/* Next in list. */
@@ -469,8 +473,12 @@
 
 double slDoubleMedian(struct slDouble *list);
 /* Return median value on list. */
 
+void slDoubleBoxWhiskerCalc(struct slDouble *list, double *retMin, 
+	double *retQ1, double *retMedian, double *retQ3, double *retMax);
+/* Calculate what you need to draw a box and whiskers plot from a list of slDoubles. */
+
 void intSort(int count, int *array);
 /* Sort an array of ints. */
 
 int intMedian(int count, int *array);