marf.Stats.StatisticalEstimators.Smoothing
Class Smoothing

java.lang.Object
  extended by marf.Storage.StorageManager
      extended by marf.Stats.StatisticalEstimators.StatisticalEstimator
          extended by marf.Stats.StatisticalEstimators.Smoothing.Smoothing
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, IStatisticalEstimator, ISmoothing, IStorageManager
Direct Known Subclasses:
AddDelta, GoodTuring, WittenBell

public abstract class Smoothing
extends StatisticalEstimator
implements ISmoothing

Generic Smoothing Estimator implementation. Most statistical smoothing classes should extend this class. If they can't, they must implement the ISmoothing interface. TODO: complete exception handling.

$Id: Smoothing.java,v 1.15 2006/01/15 06:58:08 mokhov Exp $

Since:
0.3.0.2
Version:
$Revision: 1.15 $
Author:
Serguei Mokhov
See Also:
ISmoothing, 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
Smoothing()
          Default constructor with a call to the parent.
 
Method Summary
static java.lang.String getMARFSourceCodeRevision()
          Returns source code revision information.
 boolean train()
          This generic implementation first calls super.train(), then smooth(), and then dump().
 
Methods inherited from class marf.Stats.StatisticalEstimators.StatisticalEstimator
backSynchronizeObject, dumpCSV, dumpXML, getFilename, getLanguage, getProbabilityTable, getStreamTokenizer, p, resetFilename, restoreCSV, restoreXML, setLanguage, setStreamTokenizer
 
Methods inherited from class marf.Storage.StorageManager
clone, dump, dumpBinary, dumpGzipBinary, dumpHTML, dumpSQL, enableDumpOnNotFound, equals, getDefaultExtension, getDefaultExtension, getDumpMode, getObjectToSerialize, hashCode, restore, restoreBinary, restoreGzipBinary, restoreHTML, restoreSQL, setDumpMode, setFilename, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface marf.Stats.StatisticalEstimators.Smoothing.ISmoothing
smooth
 

Constructor Detail

Smoothing

public Smoothing()
Default constructor with a call to the parent.

Method Detail

train

public boolean train()
This generic implementation first calls super.train(), then smooth(), and then dump().

Specified by:
train in interface IStatisticalEstimator
Overrides:
train in class StatisticalEstimator
Returns:
true if training was successful
See Also:
IStatisticalEstimator.train()

getMARFSourceCodeRevision

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

Returns:
revision string


SourceForge Logo