def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def __maximization_step(self):
        self.__pic = []
        self.__means = []
        self.__variances = []