GNU Radio 3.5.3.2 C++ API
gr_wavelet_ff.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2005 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 #ifndef INCLUDED_GR_WAVELET_FF_H
23 #define INCLUDED_GR_WAVELET_FF_H
24 
25 #include <gr_core_api.h>
26 #include <iostream>
27 #include <gr_sync_block.h>
28 
29 #include <gsl/gsl_errno.h>
30 #include <gsl/gsl_wavelet.h>
31 
32 class gr_wavelet_ff;
34 
36 gr_make_wavelet_ff(int size = 1024,
37  int order = 20,
38  bool forward = true);
39 
40 /*!
41  * \brief compute wavelet transform using gsl routines
42  * \ingroup wavelet_blk
43  */
44 
46 {
47  int d_size;
48  int d_order;
49  bool d_forward;
50  gsl_wavelet *d_wavelet;
51  gsl_wavelet_workspace *d_workspace;
52  double *d_temp;
53 
55  gr_make_wavelet_ff(int size,
56  int order,
57  bool forward);
58 
59  gr_wavelet_ff(int size,
60  int order,
61  bool forward);
62 
63 public:
64  ~gr_wavelet_ff();
65 
66  int work (int noutput_items,
67  gr_vector_const_void_star &input_items,
68  gr_vector_void_star &output_items);
69 };
70 
71 #endif /* INCLUDED_GR_WAVELET_FF_H */