1 // ---------------------------------------------------------------------------- 2 // pskeval.cxx -- psk signal evaluator 3 // 4 // Copyright (C) 2008 5 // Dave Freese, W1HKJ 6 // 7 // This file is part of fldigi. Adapted from code contained in gmfsk source code 8 // distribution. 9 // 10 // Fldigi is free software: you can redistribute it and/or modify 11 // it under the terms of the GNU General Public License as published by 12 // the Free Software Foundation, either version 3 of the License, or 13 // (at your option) any later version. 14 // 15 // Fldigi is distributed in the hope that it will be useful, 16 // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 // GNU General Public License for more details. 19 // 20 // You should have received a copy of the GNU General Public License 21 // along with fldigi. If not, see <http://www.gnu.org/licenses/>. 22 // ---------------------------------------------------------------------------- 23 24 #ifndef _PSKEVAL_H 25 #define _PSKEVAL_H 26 27 #include "complex.h" 28 #include "filters.h" 29 #include "waterfall.h" 30 31 #define FLOWER 200 32 #define FUPPER 4000 33 34 class pskeval { 35 private: 36 double sigpwr[WF_FFTLEN]; 37 double sigmin; 38 double bw; 39 public: 40 pskeval(); 41 ~pskeval(); 42 void clear(); setbw(double w)43 void setbw(double w) { bw = w;} 44 void sigdensity(); 45 double sigpeak(int &f, int f1, int f2); 46 double peak(int &f, int f1, int f2, double level); 47 double power(int f1, int f2); 48 }; 49 50 #endif 51