GNU Radio 3.6.5 C++ API
|
00001 /*---------------------------------------------------------------------------*\ 00002 00003 FILE........: dump.h 00004 AUTHOR......: David Rowe 00005 DATE CREATED: 25/8/09 00006 00007 Routines to dump data to text files for Octave analysis. 00008 00009 \*---------------------------------------------------------------------------*/ 00010 00011 /* 00012 All rights reserved. 00013 00014 This program is free software; you can redistribute it and/or modify 00015 it under the terms of the GNU Lesser General Public License version 2.1, as 00016 published by the Free Software Foundation. This program is 00017 distributed in the hope that it will be useful, but WITHOUT ANY 00018 WARRANTY; without even the implied warranty of MERCHANTABILITY or 00019 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 00020 License for more details. 00021 00022 You should have received a copy of the GNU Lesser General Public License 00023 along with this program; if not, see <http://www.gnu.org/licenses/>. 00024 */ 00025 00026 #ifndef __DUMP__ 00027 #define __DUMP__ 00028 00029 #include "comp.h" 00030 00031 void dump_on(char filename_prefix[]); 00032 void dump_off(); 00033 00034 void dump_Sn(float Sn[]); 00035 void dump_Sw(COMP Sw[]); 00036 void dump_Sw_(COMP Sw_[]); 00037 void dump_Ew(COMP Ew[]); 00038 00039 /* amplitude modelling */ 00040 00041 void dump_model(MODEL *m); 00042 void dump_quantised_model(MODEL *m); 00043 void dump_Pw(COMP Pw[]); 00044 void dump_lsp(float lsp[]); 00045 void dump_ak(float ak[], int order); 00046 void dump_E(float E); 00047 void dump_resample(float w[], float A[], int n); 00048 00049 /* phase modelling */ 00050 00051 void dump_snr(float snr); 00052 void dump_phase(float phase[], int L); 00053 void dump_phase_(float phase[], int L); 00054 00055 /* NLP states */ 00056 00057 void dump_sq(float sq[]); 00058 void dump_dec(COMP Fw[]); 00059 void dump_Fw(COMP Fw[]); 00060 void dump_e(float e_hz[]); 00061 void dump_Rk(float Rk[]); 00062 00063 /* post filter */ 00064 00065 void dump_bg(float e, float bg_est, float percent_uv); 00066 00067 #endif