Lines Matching defs:sum
404 * Computes the sum of the coverages of the runs currently being scanned,
409 float sum = 0;
413 sum+=bords[nn].val+(at-bords[nn].pos)*bords[nn].pente;
414 // sum+=((at-bords[nn].pos)*bords[no].val+(bords[no].pos-at)*bords[nn].val)/(bords[no].pos-bords[nn].pos);
415 // sum+=ValAt(at,bords[nn].pos,bords[no].pos,bords[nn].val,bords[no].val);
418 // for each portion being scanned, compute coverage at position "at" and sum.
419 // we could simply compute the sum of portion coverages as a "f(x)=ux+y" and evaluate it at "x=at",
425 sum += bords[nn].val + (at - bords[nn].pos) * bords[nn].pente;
428 return sum;
472 // more precisely, leftV is the sum of decreases of coverage value,
473 // while rightV is the sum of increases, so that leftV+rightV is the delta.