Lines Matching refs:samples
532 printf("\t profile: name \"%s\" loss %f samples %d\n",
721 * samples N
722 * the number of samples used in the internal
744 * specified in the "samples" line. ipfw will sort and interpolate
750 samples 100
761 * samples, and when it is time to transmit a packet we will
767 #define ED_TOK_SAMPLES "samples"
875 int samples = -1;
916 if (samples > 0)
917 errx(ED_EFMT("duplicate ``samples'' line"));
919 errx(ED_EFMT("invalid number of samples"));
920 samples = atoi(arg);
921 if (samples>ED_MAX_SAMPLES_NO)
922 errx(ED_EFMT("too many samples, maximum is %d"),
972 if (samples == -1) {
974 samples = 100;
984 errx(ED_EFMT("too few samples, need at least %d"),
991 double y1 = points[i].prob * samples;
993 double y2 = points[i+1].prob * samples;
1001 p->samples[ix] = x1;
1006 p->samples[ix] = (ix - c)/m;
1009 p->samples_no = samples;
1010 p->loss_level = loss * samples;