Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

histogram relative frequency

# assuming that mydata is an numpy array
 ax.hist(mydata, weights=np.zeros_like(mydata) + 1. / mydata.size)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #histogram #relative #frequency
ADD COMMENT
Topic
Name
3+2 =