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

📄 trace_07.cc

📁 这是一个从音频信号里提取特征参量的程序
💻 CC
字号:
// file: $isip/class/search/Trace/trace_07.cc// version: $Id: trace_07.cc,v 1.3 2003/01/11 17:49:53 alphonso Exp $//// isip include files//#include "Trace.h"#include <History.h>// method: eq//// arguments://  const Trace& compare_trace: (input) trace to compare//// return: true if the traces are equivalent, else false//// compare two traces. they are equivalent if they have equivalent history// objects//boolean Trace::eq(const Trace& compare_trace_a) const {  // compare the history pointers  //  if (history_d != compare_trace_a.history_d) {    return false;  }  // compare the symbol pointers  //  if (symbol_d != compare_trace_a.symbol_d) {    return false;  }    // if we reached this far then they must be equal  //  return true;}// method: setHistory//// arguments://  const History* new_hist: (input) the history to copy//// return: a boolean indicating status//// this method sets the trace's history to the input history//boolean Trace::setHistory(const History* new_hist_a) {  // set the history  //  return (history_d = const_cast<History *>(new_hist_a));}// method: getHistory//// arguments: none//// return: a boolean indicating status//// this method gets the trace's history//History* Trace::getHistory() const {  // get the history  //  return history_d;}// method: setSymbol//// arguments://  const Symbol& new_symbol: (input) the symbol to copy//// return: a boolean indicating status//// this method sets the trace's symbol to the input symbol//boolean Trace::setSymbol(const Context* new_symbol_a) {  // set the symbol  //  return (symbol_d = const_cast<Context *>(new_symbol_a));}// method: getSymbol//// arguments: none//// return: a boolean indicating status//// this method gets the trace's symbol//Context* Trace::getSymbol() const {  // get the symbol  //  return symbol_d;}

⌨️ 快捷键说明

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