Lines Matching refs:d2
173 double d2; /* long long is okay also, speed abt the same */ in ImaMashS() local
178 d2 = val*val;/* d2 will be sum of squares of errors, given input v0 and *st */ in ImaMashS()
235 d2 += x*x; in ImaMashS()
239 d2 /= n; /* be sure it's non-negative */ in ImaMashS()
241 return (int) sqrt(d2); in ImaMashS()
271 int d2; in ImaMashChannel() local
273 d2 = ImaMashS(ch, chans, ip[ch], ip,n,&snext, NULL); in ImaMashChannel()
274 if (d2<d0) { in ImaMashChannel()
275 d0=d2; s0=low; in ImaMashChannel()
281 int d2; in ImaMashChannel() local
283 d2 = ImaMashS(ch, chans, ip[ch], ip,n,&snext, NULL); in ImaMashChannel()
284 if (d2<d0) { in ImaMashChannel()
285 d0=d2; s0=hi; in ImaMashChannel()