explain a bit
This commit is contained in:
parent
bcf798e166
commit
9cc08f09af
1 changed files with 5 additions and 5 deletions
|
@ -89,7 +89,7 @@ class AppendableLine(LineGenerator):
|
||||||
self._drawn_points[-1] = (float(x), float(y))
|
self._drawn_points[-1] = (float(x), float(y))
|
||||||
|
|
||||||
class ProceduralChain(LineGenerator):
|
class ProceduralChain(LineGenerator):
|
||||||
MOVE_DECAY_SPEED = 50
|
MOVE_DECAY_SPEED = 80 # speed at which the drawing head should approach the next point
|
||||||
VELOCITY_DAMPING = 10
|
VELOCITY_DAMPING = 10
|
||||||
VELOCITY_FACTOR = 2
|
VELOCITY_FACTOR = 2
|
||||||
link_size = .1 # 10cm
|
link_size = .1 # 10cm
|
||||||
|
@ -456,10 +456,10 @@ class DrawnScenario(TrackScenario):
|
||||||
DrawnScenario class does the actual drawing of points incl. transitions
|
DrawnScenario class does the actual drawing of points incl. transitions
|
||||||
"""
|
"""
|
||||||
|
|
||||||
ANOMALY_DECAY = .2
|
ANOMALY_DECAY = .2 # speed with which the cirlce shrinks over time
|
||||||
DISTANCE_ANOMALY_FACTOR = .05
|
DISTANCE_ANOMALY_FACTOR = .05 # the ammount to which the difference counts to the anomaly score
|
||||||
MAX_HISTORY = 80
|
MAX_HISTORY = 80 # points of history of trajectory to display (preventing too long lines)
|
||||||
CUT_GAP = 5
|
CUT_GAP = 5 # when adding a new prediction, keep the existing prediction until that point + this CUT_GAP margin
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# self.created_at = time.time()
|
# self.created_at = time.time()
|
||||||
|
|
Loading…
Reference in a new issue