public static class LpcAnalyser.LpCoeffs extends Object
Modifier and Type | Field and Description |
---|---|
protected double |
gain |
protected double[] |
lpcc |
protected double[] |
lprefc |
protected double[] |
lsf |
protected double[] |
oneMinusA |
Constructor and Description |
---|
LpcAnalyser.LpCoeffs(double[] oneMinusA,
double gain)
Create a set of LPC coefficients
|
LpcAnalyser.LpCoeffs(LpcAnalyser.LpCoeffs existing) |
Modifier and Type | Method and Description |
---|---|
double[] |
getA() |
double |
getA(int i) |
double |
getGain()
Get the gain, i.e.
|
double[] |
getLPCC(int cepstrumOrder)
Convert these LPC coefficients into LPC-Cesptrum coefficients.
|
double[] |
getLPRefc()
Convert these LPC coefficients into reflection coefficients.
|
double[] |
getLSF()
Convert these LPC coefficients into Line spectral frequencies.
|
double[] |
getOneMinusA()
Return a clone of the internal representation of the LPC coefficients.
|
double |
getOneMinusA(int i) |
int |
getOrder() |
boolean |
isStable()
Check for the stability of the LPC filter.
|
void |
setA(double[] a) |
void |
setA(int i,
double value) |
void |
setGain(double gain) |
void |
setLPCC(double[] someLpcc,
int LPCOrder)
Convert some LPC-Cepstrum coefficients into these LPC coefficients.
|
void |
setLPRefc(double[] someLprefc)
Convert some reflection coefficients into these LPC coefficients.
|
void |
setLSF(double[] someLsf) |
void |
setOneMinusA(double[] oneMinusA) |
void |
setOneMinusA(int i,
double value) |
protected double[] oneMinusA
protected double gain
protected double[] lsf
protected double[] lpcc
protected double[] lprefc
public LpcAnalyser.LpCoeffs(double[] oneMinusA, double gain)
oneMinusA
- the coefficients, a = [1, -a_1, -a_2, ... -a_p], where p = prediction ordergain
- the gain factor, i.e. the square root of the total energy or the prediction error.public LpcAnalyser.LpCoeffs(LpcAnalyser.LpCoeffs existing)
public double[] getOneMinusA()
public void setOneMinusA(double[] oneMinusA)
public final double getOneMinusA(int i)
public double getA(int i)
public void setOneMinusA(int i, double value)
public void setA(int i, double value)
public double getGain()
public void setGain(double gain)
public int getOrder()
public double[] getA()
public void setA(double[] a)
public double[] getLSF()
public void setLSF(double[] someLsf)
public double[] getLPCC(int cepstrumOrder)
cepstrumOrder
- The cepstrum order (i.e., the index of the last cepstrum coefficient).public void setLPCC(double[] someLpcc, int LPCOrder)
someLpcc
- some LpccLPCOrder
- The LPC order (i.e., the index of the last LPC coefficient). The gain is set to exp(c[0]) and the LPCs are
represented in the oneMinusA format [1 -a_1 -a_2 ... -a_p].public double[] getLPRefc()
public void setLPRefc(double[] someLprefc)
someLprefc
- some Lprefcpublic boolean isStable()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.