GNU Radio's CDMA Package
amp_var_est_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2016 <+YOU OR YOUR COMPANY+>.
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
8 * any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street,
18 * Boston, MA 02110-1301, USA.
19 */
20
21/* Authors: Vignesh Athreya, Yang Xiao, Yu Wang Winter 2016 */
22
23#ifndef INCLUDED_CDMA_AMP_VAR_EST_IMPL_H
24#define INCLUDED_CDMA_AMP_VAR_EST_IMPL_H
25
26#include <cdma/amp_var_est.h>
27
28namespace gr {
29 namespace cdma {
30
32 {
33 private:
34//-------------------------CODE HERE------------------------------
35 float d_alpha;
36 float pre0;//previous output of filter 0
37 float pre1;//previous output of filter 1
38//----------------------------------------------------------------
39
40 public:
41//-------------------------CODE HERE------------------------------
42 float alpha() const { return d_alpha; }
43 void set_alpha(float alpha) {d_alpha = alpha;}
44
46//----------------------------------------------------------------
48
49 // Where all the action really happens
50 int work(int noutput_items,
51 gr_vector_const_void_star &input_items,
52 gr_vector_void_star &output_items);
53 };
54
55 } // namespace cdma
56} // namespace gr
57
58#endif /* INCLUDED_CDMA_AMP_VAR_EST_IMPL_H */
59
Definition: amp_var_est_impl.h:32
void set_alpha(float alpha)
Definition: amp_var_est_impl.h:43
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
float alpha() const
Definition: amp_var_est_impl.h:42
Assumes as input a constant complex signal with complex noise s[i]=(A+j B) + (wr[i]+j wi[i]) Estimate...
Definition: amp_var_est.h:51
Definition: amp_var_est.h:30