I'm trying to write a function :
Input:
Source range, Source value, output range, curve type (Linear, smooth)
Output:
The output is the "source value" converted into the "output range"
according to the curve type.
I hope I am making sense here...
Any ideas ?
Thanks.
views:
84answers:
1
A:
Do some research into B-splines. I think those will be able to sort you out. Or maybe a piecewise polynomial interpolation will be sufficient. Check out "Numerical Recipes in C" for code and examples.
duffymo
2010-03-19 00:09:31