marf.Classification.Stochastic
Class ZipfLaw

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

public class ZipfLaw
extends Stochastic

Module exercising Zipf's Law.

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

Since:
0.3.0
Version:
$Revision: 1.10 $
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
ZipfLaw(marf.FeatureExtraction.FeatureExtraction poFeatureExtraction)
           
ZipfLaw(java.lang.String pstrStatsFilename)
           
 
Method Summary
 void collectStatistics(java.io.StreamTokenizer st)
           
 void dumpAll()
           
 void dumpGraphValues()
          Dumps CVS values of the rank and frequency into a file.
static java.lang.String getRevision()
          Retrieves class' revision.
 void rankAll()
           
 
Methods inherited from class marf.Classification.Stochastic.Stochastic
classify, dump, getResult, restore, train
 
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

ZipfLaw

public ZipfLaw(java.lang.String pstrStatsFilename)

ZipfLaw

public ZipfLaw(marf.FeatureExtraction.FeatureExtraction poFeatureExtraction)
Method Detail

collectStatistics

public final void collectStatistics(java.io.StreamTokenizer st)

rankAll

public final void rankAll()

dumpAll

public final void dumpAll()

dumpGraphValues

public final void dumpGraphValues()
                           throws java.io.IOException
Dumps CVS values of the rank and frequency into a file. Filename is composed from the orginal corpus name plus the .csv extension. By default the dump is in the log() scale.

java.io.IOException

getRevision

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

Returns:
revision string