#NEWLINE# def _decode_gradation( self , value ) : #NEWLINE# #INDENT# if ( self < self . dec_low_threshold ) : #NEWLINE# #INDENT# return ( ( math . pow ( 2.0 , ( ( value * self . factor ) - self . offset ) ) - self . denorm_fake0 ) * 2 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( value >= self . dec_up_threshold ) : #NEWLINE# #INDENT# return self . dec_white_threshold #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return math . pow ( 2.0 , ( ( value * self . factor ) - self . offset ) )