Пример #1
0
 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] + ")"
Пример #2
0
 def __str__(self):
     return 'GMU('+', '.join([prettyString(c) for c in self.components])+')'
Пример #3
0
 def __str__(self):
     return 'G('+prettyString(self.mu)+','+prettyString(self.sigma)+')'
Пример #4
0
 def __str__(self):
     return 'Normal('+prettyString(self.mean)+', '+\
            prettyString(self.var)+')'