nltk.FreqDist.r_Nr¶
-
FreqDist.
r_Nr
(bins=None)[source]¶ Return the dictionary mapping r to Nr, the number of samples with frequency r, where Nr > 0.
Parameters: bins (int) – The number of possible sample outcomes. bins
is used to calculate Nr(0). In particular, Nr(0) isbins-self.B()
. Ifbins
is not specified, it defaults toself.B()
(so Nr(0) will be 0).Return type: int