MCPcopy Create free account
hub / github.com/Vegetebird/GraphMLP / update

Method update

demo/lib/sort/sort.py:94–102  ·  view source on GitHub ↗

Updates the state vector with observed bbox.

(self, bbox)

Source from the content-addressed store, hash-verified

92 self.age = 0
93
94 def update(self, bbox):
95 """
96 Updates the state vector with observed bbox.
97 """
98 self.time_since_update = 0
99 self.history = []
100 self.hits += 1
101 self.hit_streak += 1
102 self.kf.update(convert_bbox_to_z(bbox))
103
104 def predict(self):
105 """

Callers 1

updateMethod · 0.95

Calls 2

convert_bbox_to_zFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected