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

📄 example.cc

📁 这是一个从音频信号里提取特征参量的程序
💻 CC
字号:
// file: $isip/doc/examples/class/math/vector/math_vector_example_00/example.cc// version: $Id: example.cc,v 1.2 2000/12/17 18:26:00 hamaker Exp $//// isip include files//#include <VectorFloat.h>#include <Console.h>// main program starts here://  this example demonstrates how the math vector objects can be used to//  compute a Euclidean distance in a multi-dimensional vector space.//int main() {    // declare two vectors and a scalar  //  VectorFloat u;  VectorFloat v;  Float distance;    // define the elements of the two vectors  //  u.assign(L"3.5, 6.4, 5.9, 0.11, 0.76");  v.assign(L"4.6, 8.9, 11.2, 22.2, 7.7");    // calculate the euclidean distance between two vectors  //  distance = u.norm(v);    // writing the result to the console  //  String output;  String tmp;  output.concat(L"the Euclidean distance between u and v is ");  tmp.assign(distance);  output.concat(tmp);  Console::put(output);    // exit gracefully  //  Integral::exit();}

⌨️ 快捷键说明

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