GNU Radio 3.6.3.1 C++ API
dump.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  FILE........: dump.h
4  AUTHOR......: David Rowe
5  DATE CREATED: 25/8/09
6 
7  Routines to dump data to text files for Octave analysis.
8 
9 \*---------------------------------------------------------------------------*/
10 
11 /*
12  All rights reserved.
13 
14  This program is free software; you can redistribute it and/or modify
15  it under the terms of the GNU Lesser General Public License version 2.1, as
16  published by the Free Software Foundation. This program is
17  distributed in the hope that it will be useful, but WITHOUT ANY
18  WARRANTY; without even the implied warranty of MERCHANTABILITY or
19  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
20  License for more details.
21 
22  You should have received a copy of the GNU Lesser General Public License
23  along with this program; if not, see <http://www.gnu.org/licenses/>.
24 */
25 
26 #ifndef __DUMP__
27 #define __DUMP__
28 
29 #include "comp.h"
30 
31 void dump_on(char filename_prefix[]);
32 void dump_off();
33 
34 void dump_Sn(float Sn[]);
35 void dump_Sw(COMP Sw[]);
36 void dump_Sw_(COMP Sw_[]);
37 void dump_Ew(COMP Ew[]);
38 
39 /* amplitude modelling */
40 
41 void dump_model(MODEL *m);
43 void dump_Pw(COMP Pw[]);
44 void dump_lsp(float lsp[]);
45 void dump_ak(float ak[], int order);
46 void dump_E(float E);
47 void dump_resample(float w[], float A[], int n);
48 
49 /* phase modelling */
50 
51 void dump_snr(float snr);
52 void dump_phase(float phase[], int L);
53 void dump_phase_(float phase[], int L);
54 
55 /* NLP states */
56 
57 void dump_sq(float sq[]);
58 void dump_dec(COMP Fw[]);
59 void dump_Fw(COMP Fw[]);
60 void dump_e(float e_hz[]);
61 void dump_Rk(float Rk[]);
62 
63 /* post filter */
64 
65 void dump_bg(float e, float bg_est, float percent_uv);
66 
67 #endif