|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--marf.Storage.StorageManager
|
+--marf.Classification.Classification
|
+--marf.Classification.Stochastic.Stochastic
|
+--marf.Classification.Stochastic.ZipfLaw
Module exercising Zipf's Law.
$Id: ZipfLaw.java,v 1.15 2005/08/13 23:09:37 susan_fan Exp $
| Field Summary |
| Fields inherited from class marf.Classification.Classification |
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 | |
ZipfLaw(marf.FeatureExtraction.IFeatureExtraction poFeatureExtraction)
Classification API. |
|
ZipfLaw(java.lang.String pstrStatsFilename)
Takes a filename argument. |
|
| Method Summary | |
void |
collectStatistics(java.io.StreamTokenizer st)
Collects result statistics. |
void |
dumpAll()
Dumps results to STDOUT. |
void |
dumpGraphValues()
Dumps CVS values of the rank and frequency into a file. |
static java.lang.String |
getMARFSourceCodeRevision()
Retrieves class' revision. |
void |
rankAll()
Ranks results. |
| Methods inherited from class marf.Classification.Stochastic.Stochastic |
classify, dump, getResult, restore, train |
| Methods inherited from class marf.Classification.Classification |
getFeatureExtraction, getResultSet, getTrainingSetFilename, setFeatureExtraction |
| Methods inherited from class marf.Storage.StorageManager |
backSynchronizeObject, dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, enableDumpOnNotFound, 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 |
public ZipfLaw(java.lang.String pstrStatsFilename)
pstrStatsFilename - the desired file to processpublic ZipfLaw(marf.FeatureExtraction.IFeatureExtraction poFeatureExtraction)
poFeatureExtraction - preprcessing module to get the data from| Method Detail |
public final void collectStatistics(java.io.StreamTokenizer st)
throws ClassificationException
st - desired stream tokenizer
ClassificationException - in case of innder exceptionspublic final void rankAll()
public final void dumpAll()
public final void dumpGraphValues()
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getMARFSourceCodeRevision()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||