#NEWLINE# def initExp( self , resource , n , failure_probability , params ) : #NEWLINE# #INDENT# resource . set ( 'n' , n ) #NEWLINE# resource . set ( 'failure_probability' , failure_probability ) #NEWLINE# resource . increment ( 'total_pulls' , 0 ) #NEWLINE# for i in range ( n ) : #NEWLINE# #INDENT# resource . increment ( ( 'Xsum_' + str ( i ) ) , 0.0 ) #NEWLINE# resource . increment ( ( 'T_' + str ( i ) ) , 0 ) #NEWLINE# #UNINDENT# return True