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

📄 gr_fir_xxx_generic.h.t

📁 gnuradio软件无线电源程序.现在的手机多基于软件无线电
💻 T
字号:
/* -*- c++ -*- *//* * Copyright 2002 Free Software Foundation, Inc. *  * This file is part of GNU Radio *  * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. *  * GNU Radio is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. *  * You should have received a copy of the GNU General Public License * along with GNU Radio; see the file COPYING.  If not, write to * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */#ifndef @GUARD_NAME@#define @GUARD_NAME@#include <@FIR_TYPE@.h>/*! * \brief Concrete class for generic implementation of FIR with @I_TYPE@ input, @O_TYPE@ output and @TAP_TYPE@ taps * * The trailing suffix has the form _IOT where I codes the input type, * O codes the output type, and T codes the tap type. * I,O,T are elements of the set 's' (short), 'f' (float), 'c' (gr_complex), 'i' (int) */class @FIR_TYPE@_generic : public @FIR_TYPE@ {public:  // CREATORS    @FIR_TYPE@_generic () {}  @FIR_TYPE@_generic (const std::vector<@TAP_TYPE@> &taps) : @FIR_TYPE@ (taps) {}  // MANIPULATORS  /*!   * \brief compute a single output value.   *   * \p input must have ntaps() valid entries.   * input[0] .. input[ntaps() - 1] are referenced to compute the output value.   *   * \returns the filtered input value.   */  virtual @O_TYPE@ filter (const @I_TYPE@ input[]);  /*!   * \brief compute an array of N output values.   *   * \p input must have (n - 1 + ntaps()) valid entries.   * input[0] .. input[n - 1 + ntaps() - 1] are referenced to compute the output values.   */  virtual void filterN (@O_TYPE@ output[], const @I_TYPE@ input[],			unsigned long n);  /*!   * \brief compute an array of N output values, decimating the input   *   * \p input must have (decimate * (n - 1) + ntaps()) valid entries.   * input[0] .. input[decimate * (n - 1) + ntaps() - 1] are referenced to    * compute the output values.   */  virtual void filterNdec (@O_TYPE@ output[], const @I_TYPE@ input[],			   unsigned long n, unsigned decimate);};#endif /* @GUARD_NAME@ */

⌨️ 快捷键说明

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