powered by
A very short function that reproduces Zipf's law: a harmonic rank-probability distribution, formally
p(i)=i^-1_i=1^N i^-1, i=1,...,Nomitted
zipf(n)
Returns a numeric vector summing to one
Integer; if a hyper2 object is supplied this is interpreted as size(n)
size(n)
Robin K. S. Hankin
knownp.test
zipf(icons)
Run the code above in your browser using DataLab