A general sampling formula for community structure data. Issue 11 (13th June 2017)