(self, num, repeat=1)
Adds a single number to the histogram.

        @param num: the number to be added
        @param repeat: number of repeated additions
Adds a single number to the histogram.
Adds a single number to the histogram .
def add(self, num, repeat=1):
        """Adds a single number to the histogram.

        @param num: the number to be added
        @param repeat: number of repeated additions
        """
        num = float(num)
        binidx = self._get_bin(num, True)
        self._bins[binidx] += repeat
        self._running_mean.add(num, repeat)
def add ( self , num , repeat = 1 ) : num = float ( num ) binidx = self . _get_bin ( num , True ) self . _bins [ binidx ] += repeat self . _running_mean . add ( num , repeat )