'objective function for GMM minimization
Parameters
params : array
parameter values at which objective is evaluated
weights : array
weighting matrix
Returns
jval : float
value of objective function'

def gmmobjective(self, params, weights):

    moms = self.momcond_mean(params)
    return np.dot(np.dot(moms, weights), moms)
