def relfreq(a, numbins=10, defaultreallimits=None, weights=None):
 a = np.asanyarray(a)
 (h, l, b, e) = _histogram(a, numbins, defaultreallimits, weights=weights)
 h = (h / float(a.shape[0]))
 return RelfreqResult(h, l, b, e)

def relfreq ( a , numbins = 10 , defaultreallimits = None , weights = None ) : a = np . asanyarray ( a ) ( h , l , b , e ) = _histogram ( a , numbins , defaultreallimits , weights = weights ) h = ( h / float ( a . shape [ 0 ] ) ) return RelfreqResult ( h , l , b , e )
returns a relative frequency histogram .