marf.Stats.StatisticalEstimators.Smoothing
Class WittenBell

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

public class WittenBell
extends Smoothing

Represents Witten-Bell Smoothing Algorithm. $Id: WittenBell.java,v 1.17 2005/08/14 01:15:56 mokhov Exp $

Since:
0.3.0
Version:
$Revision: 1.17 $
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.Smoothing.ISmoothing
MARF_INTERFACE_CODE_REVISION
 
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
WittenBell()
           
 
Method Summary
static java.lang.String getMARFSourceCodeRevision()
          Returns source code revision information.
 double P(marf.Stats.Ngram poNgram)
           
 boolean smooth()
          General smoothing routine.
 
Methods inherited from class marf.Stats.StatisticalEstimators.Smoothing.Smoothing
train
 
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

WittenBell

public WittenBell()
Method Detail

smooth

public boolean smooth()
Description copied from interface: ISmoothing
General smoothing routine.

Returns:
true if any smoothing took place and undelying data was altered

P

public double P(marf.Stats.Ngram poNgram)

getMARFSourceCodeRevision

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

Returns:
revision string