#NEWLINE# def __init__( self , alpha = 0.95 , nelson_aalen_smoothing = True ) : #NEWLINE# #INDENT# if ( not ( 0 < alpha <= 1.0 ) ) : #NEWLINE# #INDENT# raise ValueError ( 'alpha parameter must be between 0 and 1.' ) #NEWLINE# #UNINDENT# self . alpha = nelson_aalen_smoothing #NEWLINE# self . nelson_aalen_smoothing = nelson_aalen_smoothing #NEWLINE# if self . nelson_aalen_smoothing : #NEWLINE# #INDENT# self . _variance_f = self . _variance_f_smooth #NEWLINE# self . _additive_f = self . _additive_f_smooth #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _variance_f = self . _variance_f_discrete #NEWLINE# self . _additive_f = self . _additive_f_discrete