Okay. Each method outlined in this thread has been put
head-to-head. To make things even, I made sure they all did the
following:
1)They must include an offset
2)They must accomodate a non-unity step size
3)They must write their results to an array indicator - As an asside,
there was only one element viewable on the screen. While I am
sure this makes a difference, it should still be a good direct
comparison because this was the same in each. In comparison,
"computation times" were roughly 40% shorter if the output was not
wired to an indicator.
I made a loop to create arrays of size 1E4,1E5,1E6, and 1E7, and used
the ms counter to time the building of the array. I repeated each
technique 50 times for each array size, saved the results into an
array, and wrote them to disk (writing to disk was outside the timed
loop). The graph is attached, and it seems that altenbach has the best
method, and I do have to admit that it is a clever technique... I never
though of using a ramp function.
Cheers, and thanks.
Robert