tvaLib
Public Member Functions | Public Attributes | List of all members
lib.int.VehicleSDRs Class Reference
Inheritance diagram for lib.int.VehicleSDRs:
lib.int.UserPairs

Public Member Functions

def genPairs (self, objects, searchRange=50)
 
- Public Member Functions inherited from lib.int.UserPairs
def __init__ (self, objects, methodName='default', kwargs)
 
def __len__ (self)
 
def __getitem__ (self, i)
 
def __setitem__ (self, i, value)
 
def __iter__ (self)
 
def __str__ (self)
 
def __add__ (self, userPairs)
 
def genPairs (self, objects, maxUserPairs=4000, max_distance=50.0, searchRange=50, verbose=0)
 
def genExposure (self, objFrameTable, label='300 frames', frames=300)
 
def importPairs (self, paths, version=None, filename='')
 
def exportPairs (self, path, version=None, filename='')
 
def getInstantCount (self)
 
def getInstantWIndicatorCount (self)
 
def getIntWTTCCount (self)
 
def calculateIndicators (self, predictionMethod, triage=False, threads=1, collisionDistanceThreshold=1.5, timeHorizon=100, chunkSize=100, shortcircuit=True, verbose=0)
 
def computeCrossingsCollisionsWorkerCallback (self, packagedData)
 
def distributeIndicatorWorkerResults (self)
 
def getPointList (self, method=0, percentile=0.15, minimumProbability=0.0, format='points', userType1=None, userType2=None, originLane1=None, originLane2=None, destLane1=None, destLane2=None, kwargs)
 
def genIndicatorDistribution (self, indicator_list=None, dist_type='pdf', bins=range(0, 100, 1), normalise=False, kwargs)
 
def dropSafetyIndicatorsByValue (self, kwargs)
 
def constrainToZone (self, zone)
 
def garbageCollectObjectData (self)
 
def repopulateObjectData (self, objects, graceful=True)
 
def merge (self, source)
 

Public Attributes

 data
 
- Public Attributes inherited from lib.int.UserPairs
 interactionCount
 Static input. More...
 
 intWTTCmap
 
 skipped_rate_none
 
 skipped_rate_part
 
 skipped_rate_full
 
 skipped_rate_avg
 Store data. More...
 
 methodName
 
 detectedSize
 Determine nearest distance. More...
 
 usedSize
 
 data
 Prune list down. More...
 
 chunks
 Enable and ensure pickling support of instance methods for multithreading. More...
 
 chunk
 Process. More...
 
 data_
 For each unmerged result, merge data. More...
 
 verbose
 Progress update. More...
 
 prog
 

Detailed Description

Definition at line 728 of file int.py.

Member Function Documentation

◆ genPairs()

def lib.int.VehicleSDRs.genPairs (   self,
  objects,
  searchRange = 50 
)
Extend UserPairs to generate interactions with sorties de route (run off the road). 

Definition at line 729 of file int.py.

729  def genPairs(self, objects, searchRange=50):
730  ''' Extend UserPairs to generate interactions with sorties de route (run off the road). '''
731  self.data = []
732  num = 0
733  for ix in range(len(objects)):
734  self.data.append(Interaction(num, commonTimeInterval, objects[ix].num, 0, objects[ix], 0))
735  num += 1
736  return True

Member Data Documentation

◆ data

lib.int.VehicleSDRs.data

Definition at line 731 of file int.py.


The documentation for this class was generated from the following file: