|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmarf.gui.Spectrogram
Class Spectrogram
Dumps a spectrogram to a PPM file
$Header: /cvsroot/marf/marf/src/marf/gui/Spectrogram.java,v 1.21 2003/02/16 18:30:33 mokhov 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 interface marf.Storage.StorageManager |
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_XML |
| 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 |
void |
restore()
Not implemented |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 name| Method 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 java.io.IOException
dump in interface StorageManagerjava.io.IOException
public void restore()
throws java.io.IOException
restore in interface StorageManagerjava.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||