freqestleastsquare.h
1 /***************************************************************************
2  Copyright (C) 2002-2015 Kentaro Kitagawa
3  kitagawa@phys.s.u-tokyo.ac.jp
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  You should have received a copy of the GNU Library General
11  Public License and a list of authors along with this program;
12  see the files COPYING and AUTHORS.
13 ***************************************************************************/
14 #ifndef FREQESTLEASTSQUARE_H_
15 #define FREQESTLEASTSQUARE_H_
16 
17 #include "spectrumsolver.h"
18 
19 //! Frequency estimation by least square fit.
20 //! Number of signals is determined by information criterion.
21 class DECLSPEC_KAME FreqEstLeastSquare : public SpectrumSolver {
22 public:
23  FreqEstLeastSquare(tfuncIC ic) :
24  SpectrumSolver(), m_funcIC(ic) {}
25 protected:
26  virtual void genSpectrum(const std::vector<std::complex<double> >& memin,
27  std::vector<std::complex<double> >& memout,
28  int t0, double tol, FFT::twindowfunc windowfunc, double windowlength);
29  virtual bool hasWeighting() const {return true;}
30 private:
31  const tfuncIC m_funcIC;
32 };
33 
34 #endif /*FREQESTLEASTSQUARE_H_*/

Generated for KAME4 by  doxygen 1.8.3