#NEWLINE# def _add_centroid( self , centroid ) : #NEWLINE# #INDENT# if ( centroid . mean not in self . C ) : #NEWLINE# #INDENT# self . C . insert ( centroid . mean , centroid ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . C [ centroid . mean ] . update ( centroid . mean , centroid . count )