Lines Matching refs:samples
201 /* Limits on things. Reduce the number of samples to SAMPLEREDUCE by median
256 u_char nsamples; /* number of samples we've collected */
268 u_char usealldata; /* Use ALL samples */
1241 /* ees_process - process a pile of samples from the clock */
1254 int samples = ees->nsamples;
1256 int samplereduce = (samples + 1) / 2;
1263 samplelog = (samples < 2) ? 0 :
1264 (samples < 5) ? 1 :
1265 (samples < 9) ? 2 :
1266 (samples < 17) ? 3 :
1267 (samples < 33) ? 4 : 5;
1271 if (samples != last_samples &&
1272 ((samples != (last_samples-1)) || samples < 3)) {
1273 msyslog(LOG_ERR, "Samples=%d (%d), samplereduce=%d ....",
1274 samples, last_samples, samplereduce);
1275 last_samples = samples;
1277 if (samples < 1) return;
1281 dump_buf(coffs, 0, samples, "Raw data is:");
1284 qsort(coffs, (size_t)samples, sizeof(coffs[0]), offcompare);
1286 noff = samples;
1291 * the median, subtracting off the end samples, and
1339 (coffs[samples/2].l_f) / 4295,
1343 (coffs[samples-1].l_f) / 4295);
1354 int samd = (64 * 4) / samples;