def __repr__(self): if self.__d.items(): dictRepr = reduce(operator.add,[repr(k)+": "+prettyString(p)+", " \ for (k, p) in self.__d.items()]) else: dictRepr = '{}' return "DDist(" + dictRepr[:-2] + ")"
def __str__(self): return 'GMU('+', '.join([prettyString(c) for c in self.components])+')'
def __str__(self): return 'G('+prettyString(self.mu)+','+prettyString(self.sigma)+')'
def __str__(self): return 'Normal('+prettyString(self.mean)+', '+\ prettyString(self.var)+')'