def __init__(self, prefs, g, kappa=<NUM_LIT>, omega=<NUM_LIT:0.5>, beta=<NUM_LIT:1.0>, mu=<NUM_LIT:1.0>,<EOL>freeparams=['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']):
_checkParam('<STR_LIT:g>', g, self.PARAMLIMITS, self.PARAMTYPES)<EOL>assert abs(<NUM_LIT:1> - g.sum()) <= ALMOST_ZERO, "<STR_LIT>"<EOL>self.g = g.copy()<EOL>self.g /= self.g.sum()<EOL>super(ExpCM_empirical_phi, self).__init__(prefs, kappa=kappa,<EOL>omega=omega, beta=beta, mu=mu, freeparams=freeparams)<EOL>
Initialize an `ExpCM_empirical_phi` object.

        Args:
            `prefs`, `kappa`, `omega`, `beta`, `mu`, `freeparams`
                Same meaning as for an `ExpCM`
            `g`
                Has the meaning described in the main class doc string.