#NEWLINE# def trimmed_var( a , limits = ( 0.1 , 0.1 ) , inclusive = ( 1 , 1 ) , relative = True , axis = None , ddof = 0 ) : #NEWLINE# #INDENT# ( 'Returns the trimmed variance of the data along the given axis.\n\n    %s\n    ddof : {0,integer}, optional\n        Means Delta Degrees of Freedom. The denominator used during computations\n        is (n-ddof). DDOF=0 corresponds to a biased estimate, DDOF=1 to an un-\n        biased estimate of the variance.\n\n    ' % trimdoc ) #NEWLINE# if ( ( not isinstance ( limits , tuple ) ) and isinstance ( limits , float ) ) : #NEWLINE# #INDENT# limits = ( axis , limits ) #NEWLINE# #UNINDENT# if relative : #NEWLINE# #INDENT# out = trimr ( a , limits = limits , inclusive = inclusive , axis = axis ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# out = trima ( a , limits = limits , inclusive = inclusive ) #NEWLINE# #UNINDENT# return out . var ( axis = axis , ddof = ddof )