fb_06.cc
来自「这是一个从音频信号里提取特征参量的程序」· CC 代码 · 共 62 行
CC
62 行
// file: $isip/class/algo/FilterBank/fb_06.cc// version: $Id: fb_06.cc,v//// isip include files//#include "FilterBank.h"// method: getLeadingPad// // arguments: none//// return: the number of future frames needed if the filter is anti-causal//long FilterBank::getLeadingPad() const { // declare local variables // long len = filters_d.length(); long max_nframes = (long)0; // compute the maximum future lag // for ( long i = 0; i < len; i++) { long tmp = filters_d(i).getLeadingPad(); if (tmp > max_nframes) { max_nframes = tmp; } } // return the number of maximum frames needed to cover the future lag // return max_nframes;}// method: getTrailingPad// // arguments: none//// return: the number of past frames needed//long FilterBank::getTrailingPad() const { // declare local variables // long len = filters_d.length(); long max_nframes = (long)0; // compute the maximum past lag // for ( long i = 0; i < len; i++) { long tmp = filters_d(i).getTrailingPad(); if (tmp > max_nframes) { max_nframes = tmp; } } // return the number of maximum frames needed to cover the past lag // return max_nframes;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?