marf.Stats.StatisticalEstimators.Smoothing
Class GoodTuring

java.lang.Object
  |
  +--marf.Storage.StorageManager
        |
        +--marf.Stats.StatisticalEstimators.StatisticalEstimator
              |
              +--marf.Stats.StatisticalEstimators.Smoothing.Smoothing
                    |
                    +--marf.Stats.StatisticalEstimators.Smoothing.GoodTuring
All Implemented Interfaces:
IStorageManager, java.io.Serializable

public class GoodTuring
extends Smoothing

Good-Turing Smoothing Estimator. TODO: complete/document. $Id: GoodTuring.java,v 1.13 2005/06/01 19:30:42 mokhov Exp $

Since:
0.3.0
Version:
$Revision: 1.13 $
Author:
Serguei Mokhov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class marf.Stats.StatisticalEstimators.StatisticalEstimator
oProbabilityTable, oStreamTokenizer
 
Fields inherited from class marf.Storage.StorageManager
iCurrentDumpMode, oObjectToSerialize, strFilename
 
Fields inherited from interface marf.Storage.IStorageManager
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_HTML, DUMP_SQL, DUMP_XML, INTERFACE_CODE_REVISION, sastrExtensionsMap
 
Constructor Summary
GoodTuring()
           
GoodTuring(int piThreshold)
           
 
Method Summary
static java.lang.String getRevision()
          Returns source code revision information.
 double P(marf.Stats.Ngram poNgram)
           
 boolean smooth()
           
 
Methods inherited from class marf.Stats.StatisticalEstimators.Smoothing.Smoothing
train
 
Methods inherited from class marf.Stats.StatisticalEstimators.StatisticalEstimator
dumpCSV, dumpXML, getFilename, getLang, getProbabilityTable, getStreamTokenizer, P, resetFilename, restoreCSV, restoreXML, setLang, setStreamTokenizer
 
Methods inherited from class marf.Storage.StorageManager
backSynchronizeObject, dump, dumpBinary, dumpGzipBinary, dumpHTML, dumpSQL, getDefaultExtension, getDefaultExtension, getDumpMode, restore, restoreBinary, restoreGzipBinary, restoreHTML, restoreSQL, setDumpMode, setFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoodTuring

public GoodTuring()

GoodTuring

public GoodTuring(int piThreshold)
Method Detail

smooth

public boolean smooth()
Specified by:
smooth in class Smoothing

P

public double P(marf.Stats.Ngram poNgram)

getRevision

public static java.lang.String getRevision()
Returns source code revision information.

Returns:
revision string