Lines Matching refs:median
40 static long median(float, float *, long *, long *, unsigned int);
44 * Compute the median of the reasonable differences. First compute
45 * the median of all authorized differences, and then compute the
46 * median of all differences that are reasonably close to the first
47 * median.
77 * compute the median of the good values
103 fprintf(fd, "median of %d values starting at %ld is about ",
105 med = median(med, &eps, &x[0], xp+1, VALID_RANGE);
108 * compute the median of all values near the good median
129 fprintf(fd, "nothing close to median %ld\n", med);
135 fprintf(fd, "only value near median is %ld\n", x[0]);
140 fprintf(fd, "median of %td values starting at %ld is ",
142 return median(med, &eps, &x[0], xp, 1);
147 * compute the median of an array of signed integers, using the idea
151 median(float a, float *eps_ptr, long *x, long *xlim, unsigned int gnuf)
152 /* float a; */ /* initial guess for the median */
153 /* float *eps_ptr; */ /* spacing near the median */
158 float ap = (float)LONG_MAX; /* bounds on the median */