marf.Classification.Stochastic
Class Stochastic

java.lang.Object
  extended by marf.Storage.StorageManager
      extended by marf.Classification.Classification
          extended by marf.Classification.Stochastic.Stochastic
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, IClassification, IStorageManager
Direct Known Subclasses:
Markov, MaxProbabilityClassifier, ZipfLaw

public class Stochastic
extends Classification

Generic Stochastic Classification Module.

TODO: partially implemented.

$Id: Stochastic.java,v 1.26 2007/12/31 00:17:05 mokhov Exp $

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

Field Summary
 
Fields inherited from class marf.Classification.Classification
adFeatureVector, oFeatureExtraction, oResultSet, oTrainingSet
 
Fields inherited from class marf.Storage.StorageManager
bDumpOnNotFound, iCurrentDumpMode, oObjectToSerialize, strFilename
 
Fields inherited from interface marf.Classification.IClassification
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
Stochastic(IFeatureExtraction poFeatureExtraction)
          Stochastic Constructor.
 
Method Summary
 boolean classify(double[] padFeatureVector)
          Not Implemented.
static java.lang.String getMARFSourceCodeRevision()
          Retrieves class' revision.
 Result getResult()
          Retrieves the maximum-probability classification result.
 boolean train(double[] padFeatureVector)
          Not Implemented.
 
Methods inherited from class marf.Classification.Classification
classify, clone, dump, getFeatureExtraction, getResultSet, getTrainingSetFilename, loadTrainingSet, restore, setFeatureExtraction, train
 
Methods inherited from class marf.Storage.StorageManager
backSynchronizeObject, dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, enableDumpOnNotFound, equals, getDefaultExtension, getDefaultExtension, getDumpMode, getFilename, getObjectToSerialize, hashCode, restoreBinary, restoreCSV, restoreGzipBinary, restoreHTML, restoreSQL, restoreXML, setDumpMode, setFilename, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stochastic

public Stochastic(IFeatureExtraction poFeatureExtraction)
Stochastic Constructor.

Parameters:
poFeatureExtraction - FeatureExtraction module reference
Method Detail

classify

public boolean classify(double[] padFeatureVector)
                 throws ClassificationException
Not Implemented.

Parameters:
padFeatureVector - vector of features to compare with the stored ones
Returns:
nothing
Throws:
NotImplementedException
ClassificationException - never thrown
Since:
0.3.0.6

train

public boolean train(double[] padFeatureVector)
              throws ClassificationException
Not Implemented.

Specified by:
train in interface IClassification
Overrides:
train in class Classification
Parameters:
padFeatureVector - feature vector to train on
Returns:
nothing
Throws:
NotImplementedException
ClassificationException - never thrown
Since:
0.3.0.6
See Also:
TrainingSet

getResult

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

Returns:
Result object
Since:
0.3.0.2

getMARFSourceCodeRevision

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

Returns:
revision string
Since:
0.3.0.2


SourceForge Logo