|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--marf.gui.Spectrogram
Class Spectrogram
Dumps a spectrogram to a PPM file
$Header: /cvsroot/marf/marf/src/marf/gui/Spectrogram.java,v 1.20.2.1 2003/02/16 18:30:35 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. |
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 |
|
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 java.io.IOException
dump
in interface StorageManager
java.io.IOException
- public void restore() throws java.io.IOException
restore
in interface StorageManager
marf.Storage.StorageManager
java.io.IOException
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |