gershunov is now g_test
refactoring of convex combination for simulated data