Programmer Guide/Command Reference/EVAL/cepstrum: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
;Result 2:A vector with same length as ''x'', containing the liftered spectrum. | ;Result 2:A vector with same length as ''x'', containing the liftered spectrum. | ||
---- | ---- | ||
;See also: [[Programmer_Guide/Command_Reference/EVAL/ | ;See also: [[Programmer_Guide/Command_Reference/EVAL/fft|fft]], [[Programmer_Guide/Command_Reference/EVAL/ifft|ifft]], [[Programmer_Guide/Command_Reference/EVAL/dft|dft]], [[Programmer_Guide/Command_Reference/EVAL/dct|dct]], [[Programmer_Guide/Command_Reference/EVAL/lpc|lpc]], [[Programmer_Guide/Command_Reference/EVAL/complex arithmetic|complex arithmetic]] | ||
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]] | [[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]] |
Revision as of 13:36, 12 April 2011
Compute the real cepstrum or the cepstrum smoothed/liftered spectrum of the logarithmic spectrum x.
- Usage 1
cepstrum(x)
- x
- a vector containing a log. amplitude spectrum
- note: because a radix-2 fft/ifft is used for the computation, the spectrum stored in x must be computed from a signal with
L=2^M
samples (-> nrow(x)=L/2+1=2^M/2+1
).
- note: because a radix-2 fft/ifft is used for the computation, the spectrum stored in x must be computed from a signal with
- Result 1
- A vector with
L/2
values, containing the coefficients or the real cepstrum of x.
- Usage 2
cepstrum(x, m)
- x
- a vector containing a log. amplitude spectrum
- m
- the number of coefficients to be used for smoothing; 0 < m <= L/2
- Description
-
- The real cepstrum c of x is computed.
- The coefficents m to
L/2-1
of the cepstrum c are set to zero. - The smoothed spectrum is computed from the modified cepstrum c.
- Result 2
- A vector with same length as x, containing the smoothed spectrum.
- Usage 2
cepstrum(x, o, m)
- x
- a vector containing a log. amplitude spectrum
- o
- the first coefficient to be used for smoothing; 0 < o < L/2
- m
- the number of coefficients to be used for smoothing; 0 < m <= L/2-o
- Description
-
- The real cepstrum c of x is computed.
- The coefficents 0 to o-1 and o+m to
L/2-1
of the cepstrum c are set to zero. - The liftered spectrum is computed from the modified cepstrum c.
- Result 2
- A vector with same length as x, containing the liftered spectrum.