def fv(x, p, pf): return fnc.fv(ff.fn, x, p, pf)
def rss_opt(p): y = fnc.fv(ff.fn, ff.d[:, 0], p, ff.pf) return sum((y[:] - ff.d[:, 1])**2)
def fv(x, p, pf): return fnc.fv(embe_fit.fn, x, p, pf)
def rss(d, p, pf, f): y = fnc.fv(ff.fn, d[:, 0], p, pf) return sum((y[:] - d[:, 1])**2)
def rss(d, p, pf, f): y = fnc.fv(embe_fit.fn, d[:, 0], p, pf) return sum((y - d[:, 1])**2)