#NEWLINE# def __init__( self , windowSize , positiveThreshold , negativeThreshold ) : #NEWLINE# #INDENT# if ( negativeThreshold > self ) : #NEWLINE# #INDENT# raise Exception ( 'Invalid thresholds' ) #NEWLINE# #UNINDENT# super ( TrendEventWindow , self ) . __init__ ( windowSize ) #NEWLINE# self . __positiveThreshold = positiveThreshold #NEWLINE# self . __negativeThreshold = negativeThreshold