parameters: (self)
docstring: Normalize the shares of all vehicle type within each mode.
docstring_summary: Normalize the shares of all vehicle type within each mode.
docstring_tokens: Normalize the shares of all vehicle type within each mode .
function: def normalize_shares(self):
          """
          Normalize the shares of all vehicle type within each mode.
          """
          for id_mode in self.get_modes():
              ids_vtype = self.select_by_mode(id_mode)
              if len(ids_vtype) > 0:
                  shares = self.shares_in_mode[ids_vtype]
                  self.shares_in_mode[ids_vtype] = shares/np.sum(shares)
function_tokens: def normalize_shares ( self ) : for id_mode in self . get_modes ( ) : ids_vtype = self . select_by_mode ( id_mode ) if len ( ids_vtype ) > 0 : shares = self . shares_in_mode [ ids_vtype ] self . shares_in_mode [ ids_vtype ] = shares / np . sum ( shares )