|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.Storage.StorageManager marf.gui.Spectrogram
Class Spectrogram dumps a spectrogram to a PPM file.
$Id: Spectrogram.java,v 1.30 2005/08/13 23:09:38 susan_fan Exp $
Field Summary | |
protected java.util.Vector |
data
The data vector. |
protected double |
max
Current maximum. |
protected double |
min
Current minimum. |
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[] values)
Adds FFT spectrum to the data to dump. |
void |
addLPC(double[] lpc_coeffs,
int num_coeffs,
int size)
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, 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 data
protected double min
protected double max
protected java.lang.String strMethod
Constructor Detail |
public Spectrogram()
public Spectrogram(java.lang.String pstrMethodName)
pstrMethodName
- String representing FE module nameMethod Detail |
public final void addLPC(double[] lpc_coeffs, int num_coeffs, int size)
lpc_coeffs
- LPC coefficiencies to dumpnum_coeffs
- number of LPC coefficiencies to dumpsize
- size of the spectrogram (width)public final void addFFT(double[] values)
values
- array of doubles (FFT coefficiencies)public final void dump() throws StorageException
dump
in interface IStorageManager
dump
in class StorageManager
StorageException
IStorageManager.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 IStorageManager
restore
in class StorageManager
NotImplementedException
StorageException
- never thrownIStorageManager.DUMP_GZIP_BINARY
,
IStorageManager.DUMP_BINARY
,
StorageManager.dumpGzipBinary()
,
StorageManager.dumpCSV()
,
StorageManager.dumpBinary()
,
StorageManager.dumpXML()
,
StorageManager.dumpHTML()
,
StorageManager.dumpSQL()
,
StorageManager.backSynchronizeObject()
,
StorageManager.iCurrentDumpMode
public static java.lang.String getMARFSourceCodeRevision()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |