摘要 |
<p>A method of linearly interpolating the integer values of a dependent variable Z ranging from a given starting value Zs to a given ending value Ze as an independent variable X traverses an ordered sequence of integers starting with Xs and ending with Xe, thus producing a sequence of (X,Y) pairs, wherein both integer and fractional portions of the slope of the function Z = f(X) are computed and the fractional portion is scaled and used to determine an integer value of Z for each value of X, the scaling of the fractional portion being such that the variation of Z depends on a "greater than one or equal to zero" comparison.</p> |