#NEWLINE# def normalize( N , percentile ) : #NEWLINE# #INDENT# 'Normalize N and remove first and last percentile\n\n    :parameter N:          is a list of values.\n    :parameter percentile: a float value from 0.0 to 1.0.\n\n    :return:               the percentile of the values\n    ' #NEWLINE# if ( not N ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# k = ( ( len ( N ) - 1 ) * percentile ) #NEWLINE# floor = int ( k ) #NEWLINE# return sorted ( N ) [ floor : ( ( len ( floor ) - floor ) - 1 ) ]