Closed fritzo closed 7 years ago
def merge(self, shared, source): self.count += source.count self.sum_x += source.sum_x self.sum_xxT += source.sum_xxT # FIXME This ignores the difference in .sum_x parts.
For a possibly correct implementation in 1d, see the nich implementation.
nich
Ah, I see this is not a bug: niw uses non-central moments, whereas nich uses central moments.
niw
For a possibly correct implementation in 1d, see the
nich
implementation.