class_docstr: Represents a single bin of a histogram.
  
  The bin represents integers between 'lower' (inclusive) and 'upper' (see
  attributes section below to understand when inclusive and when exclusive).
  
  Attributes:
    lower: the lower bound of the bin.
    upper: the upper of the bin, i.e. values in the bin are in
      [lower; upper} range ("}" means it can be either "]" or ")". It is
      always not included if histogram lower and upper are integers or
      if it is not the last bin of the histogram. If lower and upper are
      real values, and it is the last bin then the upper is included.
    count: the number of elements in the bin.
    sum: the sum of elements in the bin.
    max: the maximum element in the bin, which is smaller or equal to the
      upper.
class_docstr_tok: ["Represents","a","single","bin","of","a","histogram",".","The","bin","represents","integers","between","'lower","'","(","inclusive",")","and","'upper","'","(","see","attributes","section","below","to","understand","when","inclusive","and","when","exclusive",")",".","Attributes",":","lower",":","the","lower","bound","of","the","bin",".","upper",":","the","upper","of","the","bin",",","i.e",".","values","in","the","bin","are","in","[","lower",";","upper","}","range","(","``","}","''","means","it","can","be","either","``","]","''","or","``",")","''",".","It","is","always","not","included","if","histogram","lower","and","upper","are","integers","or","if","it","is","not","the","last","bin","of","the","histogram",".","If","lower","and","upper","are","real","values",",","and","it","is","the","last","bin","then","the","upper","is","included",".","count",":","the","number","of","elements","in","the","bin",".","sum",":","the","sum","of","elements","in","the","bin",".","max",":","the","maximum","element","in","the","bin",",","which","is","smaller","or","equal","to","the","upper","."]
code: def __add__(self, other: "FrequencyBin") -> "FrequencyBin":
      self._check_same_bin(other)
      return FrequencyBin(
          self.lower,
          self.upper,
          self.count + other.count,
          self.sum + other.sum,
          max(self.max, other.max),
      )
  
file_path: pipelinedp/pipeline_dp/dataset_histograms/histograms.py
imports: from dataclasses import dataclass, field
  import enum
  from typing import List, Sequence, Tuple, Union
label_desc: Use image node_id 1 for calling the FrequencyBin obj's underlying member method code with example usage: obj.__add__(other) and returns: FrequencyBin