parameters: (self)
return_statement: return speeds_inmotion_est
docstring: Estimate speeds in motion.
          Returns an array speeds_inmotion_est such that 
          the average speed in motion of trip id_trip is
          speeds_inmotion_est[id_trip]
docstring_summary: Estimate speeds in motion.
          Returns an array speeds_inmotion_est such that 
          the average speed in motion of trip id_trip is
          speeds_inmotion_est[id_trip]
docstring_tokens: Estimate speeds in motion . Returns an array speeds_inmotion_est such that the average speed in motion of trip id_trip is speeds_inmotion_est [ id_trip ]
function: def get_speeds_inmotion_est(self):
          """
          Estimate speeds in motion.
          Returns an array speeds_inmotion_est such that 
          the average speed in motion of trip id_trip is
          speeds_inmotion_est[id_trip]
          """
          routes = self.ids_route.get_linktab()
          
          ids_routeres = self.get_ids()
          ids_trip = routes.ids_trip[self.ids_route[ids_routeres]]
          
          if len(ids_trip)>0:
              speeds_inmotion_est = np.zeros(max(ids_trip)+1, dtype = np.float32)
          else:
              return []
          
          #ids_trip_matched = self.ids_trip[ids_tripres]
          speeds_inmotion_est[ids_trip] = self.get_speeds_inmotion(ids_routeres)
          return speeds_inmotion_est
function_tokens: def get_speeds_inmotion_est ( self ) : routes = self . ids_route . get_linktab ( ) ids_routeres = self . get_ids ( ) ids_trip = routes . ids_trip [ self . ids_route [ ids_routeres ] ] if len ( ids_trip ) > 0 : speeds_inmotion_est = np . zeros ( max ( ids_trip ) + 1 , dtype = np . float32 ) else : return [ ] #ids_trip_matched = self.ids_trip[ids_tripres] speeds_inmotion_est [ ids_trip ] = self . get_speeds_inmotion ( ids_routeres ) return speeds_inmotion_est