⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ft_df_2.cc

📁 这是处理语音信号的程序
💻 CC
字号:
// file: $PDSP/class/fourier_transform/v3.0/ft_df_2.cc//// isip include files//#include "fourier_transform.h"#include "fourier_transform_constants.h"// method: df_init_cc//// arguments://  int_4 order_a: (input) new order//// return: a logical_1 value indicating status//// creates lookup tables for sin and cosine terms. note that space is// allocated in this method only when the order changes.//logical_1 Fourier_transform::df_init_cc(int_4 order_a) {  // if the order is the same as the previous call, we are done  //  if (df_last_order_d == order_a) {    return ISIP_TRUE;  }  // assign the order  //  N_d = order_a;  df_last_order_d = N_d;  // allocate space  //  df_wr_d = new float_8[N_d*N_d];  df_wi_d = new float_8[N_d*N_d];    // loop over all data samples  //  float_8 scale_factor = ISIP_TWOPI/(float_8)N_d;  int_4 m = 0;  int_4 k;  int_4 n;  for (k=0; k<N_d; ++k) {    for(n=0; n<N_d; ++n) {            // compute the argument      //      df_wi_d[m] = sin(scale_factor * (float_8)n * (float_8)k);      df_wr_d[m] = cos(scale_factor * (float_8)n * (float_8)k);      // increment counters      //      ++m;    }  }  // exit gracefully  //  return ISIP_TRUE;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -