|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.dfki.lt.mary.unitselection.Datagram
de.dfki.lt.mary.unitselection.LPCDatagram
public class LPCDatagram
| Field Summary | |
|---|---|
protected short[] |
quantizedCoeffs
|
protected byte[] |
quantizedResidual
|
| Fields inherited from class de.dfki.lt.mary.unitselection.Datagram |
|---|
data, duration |
| Constructor Summary | |
|---|---|
LPCDatagram(long setDuration,
float[] coeffs,
short[] residual,
float lpcMin,
float lpcRange)
Construct an LPC datagram from unquantized data. |
|
LPCDatagram(long setDuration,
short[] quantizedCoeffs,
byte[] quantizedResidual)
Construct an LPC datagram from quantized data. |
|
LPCDatagram(java.io.RandomAccessFile raf,
int lpcOrder)
Constructor which pops a datagram from a random access file. |
|
| Method Summary | |
|---|---|
boolean |
equals(Datagram other)
Tests if this datagram is equal to another datagram. |
float[] |
getCoeffs(float lpcMin,
float lpcRange)
Get the LPC coefficients, unquantized using the given lpc min and range values. |
int |
getLength()
Get the length, in bytes, of the datagram's data field. |
short[] |
getQuantizedCoeffs()
Get the quantized lpc coefficients |
byte[] |
getQuantizedResidual()
Get the quantized residual. |
short[] |
getResidual()
Get the unquantized residual |
int |
lpcOrder()
Get the LPC order, i.e. |
void |
write(java.io.DataOutput out)
Write this datagram to a random access file or data output stream. |
| Methods inherited from class de.dfki.lt.mary.unitselection.Datagram |
|---|
getData, getDuration, setDuration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected short[] quantizedCoeffs
protected byte[] quantizedResidual
| Constructor Detail |
|---|
public LPCDatagram(long setDuration,
short[] quantizedCoeffs,
byte[] quantizedResidual)
duration - the duration, in samples, of the data represented by this datagramquantizedCoeffs - the quantized LPC coefficientsquantizedResidual - the quantized residual
public LPCDatagram(long setDuration,
float[] coeffs,
short[] residual,
float lpcMin,
float lpcRange)
duration - the duration, in samples, of the data represented by this datagramcoeffs - the (unquantized) LPC coefficientsresidual - the (unquantized) residual
public LPCDatagram(java.io.RandomAccessFile raf,
int lpcOrder)
throws java.io.IOException,
java.io.EOFException
raf - the random access file to pop the datagram from.
java.io.IOException
java.io.EOFException| Method Detail |
|---|
public int getLength()
getLength in class Datagrampublic int lpcOrder()
getQuantizedCoeffs(),
#getCoeffs()public short[] getQuantizedCoeffs()
lpcOrder(),
#getCoeffs()public byte[] getQuantizedResidual()
public float[] getCoeffs(float lpcMin,
float lpcRange)
lpcMin - the lpc minimumlpcRange - the lpc range
lpcOrder(),
getQuantizedCoeffs()public short[] getResidual()
public void write(java.io.DataOutput out)
throws java.io.IOException
write in class Datagramjava.io.IOExceptionpublic boolean equals(Datagram other)
equals in class Datagram
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||