c2acr#
- class diffsptk.CepstrumToAutocorrelation(cep_order, acr_order, n_fft=512)[source]#
- See this page for details. - Parameters:
- cep_orderint >= 0
- Order of cepstrum, \(M\). 
- acr_orderint >= 0
- Order of autocorrelation, \(N\). 
- n_fftint >> N
- Number of FFT bins. Accurate conversion requires the large value. 
 
 - forward(c)[source]#
- Convert cepstrum to autocorrelation. - Parameters:
- cTensor [shape=(…, M+1)]
- Cepstral coefficients. 
 
- Returns:
- outTensor [shape=(…, N+1)]
- Autocorrelation. 
 
 - Examples - >>> c = diffsptk.nrand(4) >>> c tensor([-0.1751, 0.1950, -0.3211, 0.3523, -0.5453]) >>> c2acr = diffsptk.CepstrumToAutocorrelation(4, 4, 16) >>> r = c2acr(c) >>> r tensor([ 1.0672, -0.0485, -0.1564, 0.2666, -0.4551]) 
 
- diffsptk.functional.c2acr(c, acr_order, n_fft=512)[source]#
- Convert cepstrum to autocorrelation. - Parameters:
- cTensor [shape=(…, M+1)]
- Cepstral coefficients. 
- acr_orderint >= 0
- Order of autocorrelation, \(N\). 
- n_fftint >> N
- Number of FFT bins. Accurate conversion requires the large value. 
 
- Returns:
- outTensor [shape=(…, N+1)]
- Autocorrelation. 
 
 
See also