• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/ntpclient/

Lines Matching defs:slope

51 	double slope;
64 * where that line matches b's slope coordinate.
69 x = (b->slope - a->slope) / (c->slope - a->slope) ;
81 * looks for the largest (sign=0) or smallest (sign=1) slope.
85 double dt, slope;
91 slope = (d_ring[n].s.ss[s0] - d_ring[j].s.ss[s1]) / dt;
92 if (0 && debug) printf("slope %d%d%d [%d,%d] = %f\n",
93 s0, s1, sign, j, n, slope);
94 if (cinit || (slope < answer->slope) ^ sign) {
95 answer->slope = slope;
97 slope*(d_ring[rp].absolute - d_ring[n].absolute);
141 double find_shift(double slope, double offset)
143 double shift = slope - offset/600.0;
144 double shift2 = slope + 0.3 - offset/6000.0;
146 if (debug) printf("find_shift %f %f -> %f\n", slope, offset, shift);
154 if (debug) printf("loop %f %f\n", s->slope, s->offset);
155 l = find_shift(- s->slope, s->offset);
156 r = find_shift( s->slope, - s->offset);
168 double slope = 0.5 * (max->slope + min->slope);
169 double dslope = (max->slope - min->slope);
172 double delta = -offset/600.0 - slope;
226 * slope == freq */
231 if (check.slope < maxseg[c].slope && check.slope > last_slope &&
232 (dinit || check.slope < save_min.slope)) {dinit=0; save_min=check; }
234 c, maxseg[c].slope, maxseg[c].offset);
235 last_slope = maxseg[c].slope;
240 if (debug && dinit==0) printf ("mincross %f *x+ %f\n", save_min.slope, save_min.offset);
246 * order of decreasing slope. */
251 if (check.slope > minseg[c].slope && check.slope < last_slope &&
252 (dinit || check.slope < save_max.slope)) {dinit=0; save_max=check; }
254 c, minseg[c].slope, minseg[c].offset);
255 last_slope = minseg[c].slope;
260 if (debug && dinit==0) printf ("maxcross %f *x+ %f\n", save_max.slope, save_max.offset);
264 * the envelope of slope/offset coordinates that are consistent
271 if (dinit && maxseg[c].slope > save_min.slope) {
276 if (maxseg[c].slope > save_max.slope)
287 if (dinit && minseg[c].slope < save_max.slope) {
292 if (minseg[c].slope < save_min.slope)
316 printf ("# box [( %.3f , %.1f ) ", save_min.slope, save_min.offset);
317 printf ( " ( %.3f , %.1f )] ", save_max.slope, save_max.offset);