#NEWLINE# def observe( self , amount ) : #NEWLINE# #INDENT# 'Observe the given amount.' #NEWLINE# self . _sum . inc ( amount ) #NEWLINE# for ( i , bound ) in enumerate ( self . _upper_bounds ) : #NEWLINE# #INDENT# if ( amount <= bound ) : #NEWLINE# #INDENT# self . _buckets [ i ] . inc ( 1 ) #NEWLINE# break