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

📄 sequentialrootgeneratorpolynomialcreator.cpp

📁 心电图小波零树压缩演算法的研究
💻 CPP
字号:
#include "SequentialRootGeneratorPolynomialCreator.h"namespace galois{  SequentialRootGeneratorPolynomialCreator::SequentialRootGeneratorPolynomialCreator(GaloisField* _gf, const unsigned int _initial_index, const unsigned int _num_elements)  {     if ((_gf != NULL) && (_num_elements != 0))     {        gf            = _gf;        initial_index = _initial_index;        num_elements  = _num_elements;     }     else     {        gf            = NULL;        initial_index = 0;        num_elements  = 0;     }  }  GaloisFieldPolynomial SequentialRootGeneratorPolynomialCreator::create()  {     GaloisFieldElement ALPHA(gf,2);     GaloisFieldElement xgfe[2] = {GaloisFieldElement(gf, 0),GaloisFieldElement(gf, 1)};     GaloisFieldPolynomial X(gf,1,xgfe);     GaloisFieldPolynomial g = GaloisFieldElement(gf, 1);     for(unsigned int i = initial_index; i < initial_index + num_elements; i++)     {        g *= (X + (ALPHA ^ i));     }     return g;  }}

⌨️ 快捷键说明

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