edu.stanford.nlp.classify
Class SimpleGoodTuring

java.lang.Object
  |
  +--edu.stanford.nlp.classify.SimpleGoodTuring

public class SimpleGoodTuring
extends Object


Field Summary
 int bigN
           
 double bigNprime
           
 double intercept
           
 double[] log_r
           
 double[] log_Z
           
 int[] n
           
 double[] p
           
 double PZero
           
 int[] r
           
 int rows
           
 double[] rStar
           
 double slope
           
 double[] Z
           
 
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
 

Field Detail

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
Constructor Detail

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.

Method Detail

analyseInput

public double[] analyseInput()
Does SGT smoothing and returns an array with the smoothed counts.


findBestFit

public void findBestFit()


Stanford NLP Group