Home | Trees | Indices | Help |
|
---|
|
object --+ | ProbDistI --+ | GoodTuringProbDist
The Good-Turing estimate of a probability distribution. This method calculates the probability mass to assign to events with zero or low counts based on the number of events with higher counts. It does so by using the smoothed count c*:
where c is the original count, N(i) is the number of event types observed with count i. These smoothed counts are then normalised to yield a probability distribution.
|
|||
|
|||
float |
|
||
any |
|
||
list
|
|
||
float
|
|
||
|
|||
string
|
|
||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Creates a Good-Turing probability distribution estimate. This method calculates the probability mass to assign to events with zero or low counts based on the number of events with higher counts. It does so by using the smoothed count c*:
where c is the original count, N(i) is the number of event types observed with count i. These smoothed counts are then normalised to yield a probability distribution. The
|
|
|
|
|
repr(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Aug 27 15:08:56 2008 | http://epydoc.sourceforge.net |