marf.Classification.Stochastic
Class Stochastic

java.lang.Object
  |
  +--marf.Storage.StorageManager
        |
        +--marf.Classification.Classification
              |
              +--marf.Classification.Stochastic.Stochastic
All Implemented Interfaces:
IStorageManager, java.io.Serializable
Direct Known Subclasses:
Markov, MaxProbabilityClassifier, ZipfLaw

public class Stochastic
extends Classification

Generic Stochastic Classification Module.

TODO: Not Implemented.

$Id: Stochastic.java,v 1.16 2005/05/30 11:59:48 mokhov Exp $

Since:
0.0.1
Version:
$Revision: 1.16 $
Author:
Serguei Mokhov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class marf.Classification.Classification
oFeatureExtraction, oResultSet, oTrainingSet
 
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
Stochastic(marf.FeatureExtraction.FeatureExtraction poFeatureExtraction)
          Stochastic Constructor.
 
Method Summary
 boolean classify()
          Not Implemented.
 void dump()
          Not Implemented.
 marf.Storage.Result getResult()
          Retrieves the maximum-probability classification result.
static java.lang.String getRevision()
          Retrieves class' revision.
 void restore()
          Not Implemented.
 boolean train()
          Not Implemented.
 
Methods inherited from class marf.Classification.Classification
getResultSet, getTrainingSetFilename
 
Methods inherited from class marf.Storage.StorageManager
backSynchronizeObject, dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, getDefaultExtension, getDefaultExtension, getDumpMode, getFilename, restoreBinary, restoreCSV, restoreGzipBinary, restoreHTML, restoreSQL, restoreXML, setDumpMode, setFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stochastic

public Stochastic(marf.FeatureExtraction.FeatureExtraction poFeatureExtraction)
Stochastic Constructor.

Parameters:
poFeatureExtraction - FeatureExtraction module reference
Method Detail

classify

public boolean classify()
                 throws ClassificationException
Not Implemented.

Specified by:
classify in class Classification
Returns:
true if classification was successful; false otherwise
Throws:
ClassificationException - if there was an error while classifying

train

public boolean train()
              throws ClassificationException
Not Implemented.

Overrides:
train in class Classification
Returns:
true if training was successful (i.e. mean vector was updated); false otherwise
Throws:
ClassificationException - if there was a problem while training
See Also:
TrainingSet

dump

public void dump()
          throws StorageException
Not Implemented.

Specified by:
dump in interface IStorageManager
Overrides:
dump in class Classification
Throws:
StorageException - if there's a problem saving training set to disk

restore

public void restore()
             throws StorageException
Not Implemented.

Specified by:
restore in interface IStorageManager
Overrides:
restore in class Classification
Throws:
StorageException - if there is a problem loading the training set from disk

getResult

public marf.Storage.Result getResult()
Retrieves the maximum-probability classification result.

Specified by:
getResult in class Classification
Returns:
Result object
Since:
0.3.0

getRevision

public static java.lang.String getRevision()
Retrieves class' revision.

Returns:
revision string
Since:
0.3.0