|
Re: A VERY nice perl script for generating lookup tables.
Quote:
|
Originally Posted by jdong
To make a drive curve, you don't need any more code than:
echo '{'
for loop:
print CurveFunction(x),','
echo '};'
As far as the curves, a quadratic curve is simply scaling a quadratic function f(x)=x^2 such that f(127)=255.
|
In its simplest form, yes. My script, however, incorperates compensation for Victor deadbands and it allows the use of a two curve composite.
__________________
When a sociaty comes to believe that human life is not inherently worth living, it is a slippery slope to the gas chamber. You wind up on a low road that twists past Columbine and leads toward Auschwitz.
-Peggy Noonan
|