public class EnergyPlotter extends java.lang.Object implements Configurable
Data.getValues()
. For negative energy value, a "-" will be printed out. The
plots look like the following, one line per cepstrum. The energy value for that particular cepstrum is printed at the
end of the line.
+......7
+......7
Cepstrum: SPEECH_START
+......7
+.......8
+......7
+.......8
+.......8
+........9
+............14
+...........13
+...........13
+...........13
+.............15
+.............15
+..............16
+..............16
+..............16
+.............15
+............14
+............14
+............14
+............14
+.............15
+..............16
+...............17
+...............17
+...............17
+...............17
+...............17
+...............17
+..............16
+.............15
+............14
+............14
+............14
+...........13
+........9
+.......8
+......7
+......7
+......7
Cepstrum: SPEECH_END
+......7
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_MAX_ENERGY
The maximum level of energy for which a plot string will be preconstructed.
|
Constructor and Description |
---|
EnergyPlotter() |
EnergyPlotter(int maxEnergy) |
Modifier and Type | Method and Description |
---|---|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
void |
plot(Data cepstrum)
Plots the energy values of the given Data to System.out.
|
@S4Integer(defaultValue=20) public static final java.lang.String PROP_MAX_ENERGY
public EnergyPlotter(int maxEnergy)
public EnergyPlotter()
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
ps
- a property sheet holding the new dataPropertyException
- if there is a problem with the properties.public void plot(Data cepstrum)
cepstrum
- the Data to plot