(self, factor=2.0)
| 848 | |
| 849 | # Decrease the amount assigned to the uniform and renormalize others |
| 850 | def decreaseUniformWeight(self, factor=2.0): |
| 851 | weights = [c[1] for c in self.components] |
| 852 | oldWeightSum = sum(weights) |
| 853 | self.uniformWeight = min(self.uniformWeight / factor, 0.999) |
| 854 | rweights = [w * (1 - self.uniformWeight) / oldWeightSum \ |
| 855 | for w in weights] |
| 856 | for (c, w) in zip(self.components, rweights): |
| 857 | c[1] = w |
| 858 | |
| 859 | def kalmanObsUpdateNoSE(self, obs, obsSigma): |
| 860 | thing = GMU([[d.kalmanObsUpdate(obs, obsSigma), p] \ |
no outgoing calls
no test coverage detected