I have two functions
m1 = f1(w, s)
m2 = f2(w, s)
f1() and f2() are all blackboxs. Given w and s, I can get m1 and m2.
Now, I need to design or find a function g, such that
m2' = g(m1)
Also, the difference between m2 and m2' must be minimized.
The w and s are all stochastic process.
How can I find such a function g()? What knowledge domain does this belong to ?
Assuming you can invoke f1,f2 as many times as you want - this can be solved using regression.
(w_1,s_1,m2_1),...,(w_n,s_n,m2_n).(m1_1,m2_1),...,(m1_n,m2_n).(1,m1_1,m1_1^2,m1_1^3,m2_1), ...It is easy to generalize it to any degree of polynom or any other set base functions.However, note that for some functions, this might be impossible to
calculatefind a good model to fit, since you lose data when you reduce the dimensionality from 2 (w,s) to 1 (m1).Matlab code snap (poor choice of functions):