Home | History | Annotate | Download | only in src

Lines Matching refs:lag

533   Calculate autocorellation value for one lag
538 \param lag to be calculated
539 \param scaling of the lag
546 const INT lag,
553 if (lag==0) {
559 for (i=startLine; i<(stopLine-lag); i++) {
560 result += (fMult(spectrum[i], spectrum[i+lag])>>scale);
626 int i, idx0, idx1, idx2, idx3, idx4, lag;
670 /* compute autocorrelation value at lag zero, i. e. energy, for each quarter */
683 for (lag = 1; lag <= maxOrder; lag++) {
684 /* compute energy-normalized and windowed autocorrelation values at this lag */
685 if ((3 * lag) <= maxOrder + 3) {
686 FIXP_DBL x1 = FDKaacEnc_CalcAutoCorrValue(pSpectrum, idx0, idx1, lag, nsc1);
687 _rxx1[lag] = fMult(scaleValue(fMult(x1,fac1),sc_fac1), acfWindow[LOFILT][3*lag]);
717 for (lag = 1; lag <= maxOrder; lag++) {
719 FIXP_DBL x2 = scaleValue(fMult(FDKaacEnc_CalcAutoCorrValue(pSpectrum, idx1, idx2, lag, nsc2), fac2),sc_fac2) +
720 scaleValue(fMult(FDKaacEnc_CalcAutoCorrValue(pSpectrum, idx2, idx3, lag, nsc3), fac3),sc_fac3) +
721 scaleValue(fMult(FDKaacEnc_CalcAutoCorrValue(pSpectrum, idx3, idx4, lag, nsc4), fac4),sc_fac4);
723 _rxx2[lag] = fMult(x2, acfWindow[HIFILT][lag]);