add calc-f, flip-sign, gen-noised-ys
calc e-in with linear w for noised data