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)
Integer; if a hyper2 object is supplied this is interpreted as size(n)
size(n)
Returns a numeric vector summing to one
knownp.test
# NOT RUN { zipf(icons) # }
Run the code above in your browser using DataLab