def meanexcess(thresh, shape, scale):
 warnif((shape > (-1)), 'shape > -1')
 warnif((thresh >= 0), 'thresh >= 0')
 warnif(((scale - (shape * thresh)) > 0), '(scale - shape*thresh) > 0')
 return ((scale - (shape * thresh)) / (1 + shape))

def meanexcess ( thresh , shape , scale ) : warnif ( ( shape > ( - 1 ) ) , 'shape > -1' ) warnif ( ( thresh >= 0 ) , 'thresh >= 0' ) warnif ( ( ( scale - ( shape * thresh ) ) > 0 ) , '(scale - shape*thresh) > 0' ) return ( ( scale - ( shape * thresh ) ) / ( 1 + shape ) )
mean excess function of genpareto assert are inequality conditions in de zea bermudez .