SpectMorph

lib/smpolyphaseinter.hh

00001 /*
00002  * Copyright (C) 2010 Stefan Westerfeld
00003  *
00004  * This library is free software; you can redistribute it and/or modify it
00005  * under the terms of the GNU Lesser General Public License as published by the
00006  * Free Software Foundation; either version 3 of the License, or (at your
00007  * option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful, but WITHOUT
00010  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
00012  * for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public License
00015  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00016  */
00017 
00018 #ifndef SPECTMORPH_POLY_PHASE_INTER_HH
00019 #define SPECTMORPH_POLY_PHASE_INTER_HH
00020 
00021 #include <vector>
00022 
00023 namespace SpectMorph
00024 {
00025 
00026 class PolyPhaseInter
00027 {
00028   PolyPhaseInter();
00029   ~PolyPhaseInter() {}
00030 
00031   int filter_center;
00032 
00033   std::vector<double> x;
00034 
00035 public:
00036   static PolyPhaseInter *the();
00037 
00038   double get_sample (const std::vector<float>& signal, double pos);
00039 };
00040 
00041 };
00042 
00043 #endif
 All Classes Functions Variables Enumerations Enumerator