marf.Stats.StatisticalEstimators
Class GLI

java.lang.Object
  extended by marf.Storage.StorageManager
      extended by marf.Stats.StatisticalEstimators.StatisticalEstimator
          extended by marf.Stats.StatisticalEstimators.GLI
All Implemented Interfaces:
java.io.Serializable, IStatisticalEstimator, IStorageManager

public class GLI
extends StatisticalEstimator

GLI Statistical Estimator. TODO: complete/document. $Id: GLI.java,v 1.13 2005/06/16 19:58:47 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
bDumpOnNotFound, iCurrentDumpMode, oObjectToSerialize, strFilename
 
Fields inherited from interface marf.Stats.StatisticalEstimators.IStatisticalEstimator
MARF_INTERFACE_CODE_REVISION
 
Fields inherited from interface marf.Storage.IStorageManager
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_HTML, DUMP_SQL, DUMP_XML, MARF_INTERFACE_CODE_REVISION, STORAGE_FILE_EXTENSIONS
 
Constructor Summary
GLI()
           
 
Method Summary
static java.lang.String getMARFSourceCodeRevision()
          Returns source code revision information.
 double P(Ngram poNgram)
           
 boolean train()
          Every estimator needs to implement its specific training method.
 
Methods inherited from class marf.Stats.StatisticalEstimators.StatisticalEstimator
dumpCSV, dumpXML, getFilename, getLanguage, getProbabilityTable, getStreamTokenizer, p, resetFilename, restoreCSV, restoreXML, setLanguage, setStreamTokenizer
 
Methods inherited from class marf.Storage.StorageManager
backSynchronizeObject, dump, dumpBinary, dumpGzipBinary, dumpHTML, dumpSQL, enableDumpOnNotFound, 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

GLI

public GLI()
Method Detail

P

public double P(Ngram poNgram)

train

public boolean train()
Description copied from class: StatisticalEstimator
Every estimator needs to implement its specific training method.

Specified by:
train in interface IStatisticalEstimator
Overrides:
train in class StatisticalEstimator
Returns:
true if training was successful

getMARFSourceCodeRevision

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

Returns:
revision string