edu.stanford.nlp.classify
Class SimpleGoodTuring
java.lang.Object
|
+--edu.stanford.nlp.classify.SimpleGoodTuring
- public class SimpleGoodTuring
- extends Object
Constructor Summary |
SimpleGoodTuring(int[] rt,
int[] nt,
int rowst)
Constructor: rt is an array of frequencies, nt is an
array of frequencies of frequencies, and rowst is the
size of these arrays. |
Method Summary |
double[] |
analyseInput()
Does SGT smoothing and returns an array with the smoothed
counts. |
void |
findBestFit()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
r
public int[] r
n
public int[] n
Z
public double[] Z
log_r
public double[] log_r
log_Z
public double[] log_Z
rStar
public double[] rStar
p
public double[] p
rows
public int rows
bigN
public int bigN
PZero
public double PZero
bigNprime
public double bigNprime
slope
public double slope
intercept
public double intercept
SimpleGoodTuring
public SimpleGoodTuring(int[] rt,
int[] nt,
int rowst)
- Constructor: rt is an array of frequencies, nt is an
array of frequencies of frequencies, and rowst is the
size of these arrays.
analyseInput
public double[] analyseInput()
- Does SGT smoothing and returns an array with the smoothed
counts.
findBestFit
public void findBestFit()
Stanford NLP Group