(self, bin_width=1, data=None)
Initializes the histogram with the given data set.

        @param bin_width: the bin width of the histogram.
        @param data: the data set to be used. Must contain real numbers.
Initializes the histogram with the given data set.
Initializes the histogram with the given data set .
def __init__(self, bin_width=1, data=None):
        """Initializes the histogram with the given data set.

        @param bin_width: the bin width of the histogram.
        @param data: the data set to be used. Must contain real numbers.
        """
        self._bin_width = float(bin_width)
        self._bins = None
        self._min, self._max = None, None
        self._running_mean = RunningMean()
        self.clear()

        if data:
            self.add_many(data)
def __init__ ( self , bin_width = 1 , data = None ) : self . _bin_width = float ( bin_width ) self . _bins = None self . _min , self . _max = None , None self . _running_mean = RunningMean ( ) self . clear ( ) if data : self . add_many ( data )