Talk:Map range: Difference between revisions

(→‎Adjustments and related tasks: How would you graph it?)
Line 10:
 
:Any idea of how to re-write this to allow graphing an answer? (I don't regularly use graphing tools). --[[User:Paddy3118|Paddy3118]] 16:43, 26 November 2010 (UTC)
:: It's just a kind of program output. The real problem I was touching on, I think, was that one couldn't demonstrate using a contiguous function. I loosened the task requirements again, so that should be doable. --[[User:Short Circuit|Michael Mol]] 22:17, 26 November 2010 (UTC)
 
I'd like to see a related task which performs a nonlinear mapping. (I hadn't thought of the nonlinear case when I wrote the task.) Specifically, an arbitrary one, where an <math>f(x)</math> can be provided to define the...distribution? For example, if <math>f(x)=x</math>, the numeric result would be the same as with this task. --[[User:Short Circuit|Michael Mol]] 14:46, 26 November 2010 (UTC)
 
: In other words, given maprange function g, and arbitrary function f, compute g(f(x))? --[[User:Rdm|Rdm]] 14:59, 26 November 2010 (UTC)
:: I suppose so, yeah. That would handle the analogous cases I could think of. (converting a linear 16-bit PCM input to, e.g. 8-bit a-law or <math>\mu</math>-law.) --[[User:Short Circuit|Michael Mol]] 22:17, 26 November 2010 (UTC)