#NEWLINE# def __init__( self , freqdist , bins = None ) : #NEWLINE# #INDENT# "\n        :param freqdist: The frequency counts upon which to base the\n            estimation.\n        :type freqdist: FreqDist\n        :param bins: The number of possible event types. This must be\n            larger than the number of bins in the ``freqdist``. If None,\n            then it's assumed to be equal to ``freqdist``.B() + 1\n        :type bins: int\n        " #NEWLINE# assert ( ( bins is None ) or ( bins > freqdist . B ( ) ) ) , ( 'bins parameter must not be less than %d=freqdist.B()+1' % ( freqdist . B ( ) + 1 ) ) #NEWLINE# if ( r is None ) : #NEWLINE# #INDENT# bins = ( freqdist . B ( ) + 1 ) #NEWLINE# #UNINDENT# self . _freqdist = freqdist #NEWLINE# self . _bins = bins #NEWLINE# ( r , nr ) = self . _r_Nr ( ) #NEWLINE# self . find_best_fit ( r , nr ) #NEWLINE# self . _switch ( r , nr ) #NEWLINE# self . _renormalize ( r , nr )