parameters: (self, ssrc_id, ssrc)
docstring: Prints packet and size statistics for a given SSRC.
  
      Args:
          ssrc_id: textual identifier of SSRC printed beside statistics for it.
          ssrc: SSRC by which to filter data and display statistics
docstring_summary: Prints packet and size statistics for a given SSRC.
docstring_tokens: Prints packet and size statistics for a given SSRC .
function: def PrintSsrcInfo(self, ssrc_id, ssrc):
      """Prints packet and size statistics for a given SSRC.
  
      Args:
          ssrc_id: textual identifier of SSRC printed beside statistics for it.
          ssrc: SSRC by which to filter data and display statistics
      """
      filtered_ssrc = [point for point in self.data_points if point.ssrc
                       == ssrc]
      payloads = misc.NormalizeCounter(
          collections.Counter([point.payload_type for point in
                               filtered_ssrc]))
  
      payload_info = "payload type(s): {}".format(
          ", ".join(str(payload) for payload in  payloads))
      print("{} 0x{:x} {}, {:.2f}% packets, {:.2f}% data".format(
          ssrc_id, ssrc, payload_info, self.ssrc_frequencies[ssrc] * 100,
          self.ssrc_size_table[ssrc] * 100))
      print("  packet sizes:")
      (bin_counts, bin_bounds) = numpy.histogram([point.size for point in
                                                  filtered_ssrc], bins=5,
                                                 density=False)
      bin_proportions = bin_counts / sum(bin_counts)
      print("\n".join([
          " {:.1f} - {:.1f}: {:.2f}%".format(bin_bounds[i], bin_bounds[i + 1],
                                             bin_proportions[i] * 100)
          for i in range(len(bin_proportions))
      ]))
function_tokens: def PrintSsrcInfo ( self , ssrc_id , ssrc ) : filtered_ssrc = [ point for point in self . data_points if point . ssrc == ssrc ] payloads = misc . NormalizeCounter ( collections . Counter ( [ point . payload_type for point in filtered_ssrc ] ) ) payload_info = "payload type(s): {}" . format ( ", " . join ( str ( payload ) for payload in payloads ) ) print ( "{} 0x{:x} {}, {:.2f}% packets, {:.2f}% data" . format ( ssrc_id , ssrc , payload_info , self . ssrc_frequencies [ ssrc ] * 100 , self . ssrc_size_table [ ssrc ] * 100 ) ) print ( "  packet sizes:" ) ( bin_counts , bin_bounds ) = numpy . histogram ( [ point . size for point in filtered_ssrc ] , bins = 5 , density = False ) bin_proportions = bin_counts / sum ( bin_counts ) print ( "\n" . join ( [ " {:.1f} - {:.1f}: {:.2f}%" . format ( bin_bounds [ i ] , bin_bounds [ i + 1 ] , bin_proportions [ i ] * 100 ) for i in range ( len ( bin_proportions ) ) ] ) )