The simplest is to define: g(x) = (f(x) + h(x))/2 or any other weighting, e.g., g(x) = 0.3*f(x) + 0.7*h(x)
g(x) = (f(x) + h(x))/2
g(x) = 0.3*f(x) + 0.7*h(x)