独立分量分析程序FASTICA的C++源代码

源代码在线查看: interleaver.cpp

软件大小: 967 K
上传用户: m472333662
关键词: FASTICA 独立 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				#include 								using namespace itpp;								//These lines are needed for use of cout and endl				using std::cout;				using std::endl;								int main()				{				  //Declare scalars and vectors:				  int rows, cols;				  ivec input, output, deinterleaved;								  //Declare the interleaver. The interleaver classes are templated, and therefore we must specify 				  //the type of the data elements. In this example we are using integers:				  Block_Interleaver my_interleaver;								  //Initialize the interleaver class. Note that this can be done already in the declaration by writing				  //Block_Interleaver my_interleaver(rows,cols);				  rows = 4;				  cols = 5;				  my_interleaver.set_rows(rows);				  my_interleaver.set_cols(cols);								  //Define the input to the interleaver:				  input = "1:20";								  //Do the interleaving:				  output = my_interleaver.interleave(input);								  //Do the de-interleaving:				  deinterleaved = my_interleaver.deinterleave(output);								  //Print the results:				  cout 				  cout 				  cout 								  //Exit program:				  return 0;								}							

相关资源