marf.Stats.StatisticalEstimators.Smoothing
Class Smoothing
java.lang.Object
marf.Storage.StorageManager
marf.Stats.StatisticalEstimators.StatisticalEstimator
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 |
private static long |
serialVersionUID
For serialization versioning. |
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 |
serialVersionUID
private static final long serialVersionUID
- For serialization versioning.
When adding new members or make other structural
changes regenerate this number with the
serialver
tool that comes with JDK.
- Since:
- 0.3.0.5
- See Also:
- Constant Field Values
Smoothing
public Smoothing()
- Default constructor with a call to the parent.
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