Let $f$ and $g$ be two discrete signals. I want to find a monotone function h such that
$h=argmin_{h}\sum_{n\in[0,N]}{(f(n)-g(h(n)))^2}$$h=argmin_{h}\sum_{n\in[0,N]}{(f(n)-h(g(n)))^2}$
I don't really care about finding the global optimum, I just want a good fit. What would be a good representation of f to achieve that? Thanks!