class_docstr: HistogramMseMaxFrequency for calculating min and max values of calibration result.
class_docstr_tok: ["HistogramMseMaxFrequency","for","calculating","min","and","max","values","of","calibration","result","."]
docstr: Finds min and max starting from the index of the max frequency.
  
   The HistogramMseMaxFrequency method starts from the bin with the highest
   frequency and expands the range to both sides. This performs well when data
   is well spread on both sides of the max frequency.
  
  Returns:
    (min_value, max_value): Min and max calculated using method to expand the
    range based on max frequency.
docstr_tok: ["Finds","min","and","max","starting","from","the","index","of","the","max","frequency",".","The","HistogramMseMaxFrequency","method","starts","from","the","bin","with","the","highest","frequency","and","expands","the","range","to","both","sides",".","This","performs","well","when","data","is","well","spread","on","both","sides","of","the","max","frequency",".","Returns",":","(","min_value",",","max_value",")",":","Min","and","max","calculated","using","method","to","expand","the","range","based","on","max","frequency","."]
code: def get_min_max_value(self) -> tuple[float, float]:
      """Finds min and max starting from the index of the max frequency.
  
       The HistogramMseMaxFrequency method starts from the bin with the highest
       frequency and expands the range to both sides. This performs well when data
       is well spread on both sides of the max frequency.
  
      Returns:
        (min_value, max_value): Min and max calculated using method to expand the
        range based on max frequency.
      """
      # Find the index of max frequency.
      freq_max_idx = np.argmax(self._hist_freq)
      return self._get_min_max_value_by_expanding_range(freq_max_idx)
  
imports: import abc
  import itertools
  import logging
  import numpy
  from tensorflow.compiler.mlir.quantization.tensorflow import quantization_options_pb2
  from tensorflow.compiler.mlir.quantization.tensorflow.calibrator import calibration_statistics_pb2
label_desc: Use image node_id 1 for calling the _HistogramMseMaxFrequency obj's underlying member method code with example usage: obj.get_min_max_value() and returns: self