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
Constructor Summary |
ZipfLaw(marf.FeatureExtraction.FeatureExtraction poFeatureExtraction)
|
ZipfLaw(java.lang.String pstrStatsFilename)
|
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 |
ZipfLaw
public ZipfLaw(java.lang.String pstrStatsFilename)
ZipfLaw
public ZipfLaw(marf.FeatureExtraction.FeatureExtraction poFeatureExtraction)
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