|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarf.Storage.StorageManager
marf.gui.Spectrogram
public class Spectrogram
Class Spectrogram dumps a spectrogram to a PPM file.
$Id: Spectrogram.java,v 1.32 2007/12/31 00:17:05 mokhov Exp $
| Field Summary | |
|---|---|
protected double |
dMax
Current maximum. |
protected double |
dMin
Current minimum. |
protected java.util.Vector |
oData
The data vector. |
protected java.lang.String |
strMethod
To differentiate file names based on the feature extraction method name. |
| Fields inherited from class marf.Storage.StorageManager |
|---|
bDumpOnNotFound, iCurrentDumpMode, oObjectToSerialize, strFilename |
| 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 | |
|---|---|
Spectrogram()
Constructor. |
|
Spectrogram(java.lang.String pstrMethodName)
Constructor with a feature extraction method name. |
|
| Method Summary | |
|---|---|
void |
addFFT(double[] padValues)
Adds FFT spectrum to the data to dump. |
void |
addLPC(double[] padLPCCoeffs,
int piNumCoeffs,
int piSize)
Adds LPC spectrum to the data to dump. |
void |
dump()
Dumps spectrogram. |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
void |
restore()
Not implemented. |
| Methods inherited from class marf.Storage.StorageManager |
|---|
backSynchronizeObject, clone, 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 |
| Field Detail |
|---|
protected java.util.Vector oData
protected double dMin
protected double dMax
protected java.lang.String strMethod
| Constructor Detail |
|---|
public Spectrogram()
public Spectrogram(java.lang.String pstrMethodName)
pstrMethodName - String representing FE module name| Method Detail |
|---|
public final void addLPC(double[] padLPCCoeffs,
int piNumCoeffs,
int piSize)
padLPCCoeffs - LPC coefficiencies to dumppiNumCoeffs - number of LPC coefficiencies to dumppiSize - size of the spectrogram (width)public final void addFFT(double[] padValues)
padValues - array of doubles (FFT coefficiencies)
public final void dump()
throws StorageException
dump in interface IStorageManagerdump in class StorageManagerStorageExceptionIStorageManager.DUMP_GZIP_BINARY,
IStorageManager.DUMP_BINARY,
StorageManager.dumpGzipBinary(),
StorageManager.dumpCSV(),
StorageManager.dumpBinary(),
StorageManager.dumpXML(),
StorageManager.dumpHTML(),
StorageManager.dumpSQL(),
StorageManager.backSynchronizeObject(),
StorageManager.iCurrentDumpMode
public void restore()
throws StorageException
restore in interface IStorageManagerrestore in class StorageManagerNotImplementedException
StorageException - never thrownIStorageManager.DUMP_GZIP_BINARY,
IStorageManager.DUMP_BINARY,
StorageManager.dumpGzipBinary(),
StorageManager.dumpCSV(),
StorageManager.dumpBinary(),
StorageManager.dumpXML(),
StorageManager.dumpHTML(),
StorageManager.dumpSQL(),
StorageManager.backSynchronizeObject(),
StorageManager.iCurrentDumpModepublic static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||