public class GoodTuring
extends java.lang.Object
This method takes a set of (frequency, frequency-of-frequency) pairs and estimate the probabilities corresponding to the observed frequencies, and P0, the joint probability of all unobserved species.
| Modifier and Type | Field and Description |
|---|---|
double[] |
p
The probabilities corresponding to the observed frequencies.
|
double |
p0
The joint probability of all unobserved species.
|
| Modifier and Type | Method and Description |
|---|---|
static GoodTuring |
of(int[] r,
int[] Nr)
Good–Turing frequency estimation.
|
public final double[] p
public final double p0
public static GoodTuring of(int[] r, int[] Nr)
r - the frequency in ascending order.Nr - the frequency of frequencies.