SpectMorph
smlpcztrans.hh
1 // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
2 
3 #ifndef SPECTMORPH_LPC_ZTRANS_HH
4 #define SPECTMORPH_LPC_ZTRANS_HH
5 
6 #include <complex>
7 #include <vector>
8 #include "smlpc.hh"
9 
10 namespace SpectMorph
11 {
12 
14 {
15  virtual double eval (std::complex<double> z) const = 0;
16 };
17 
19 {
20  std::vector<double> a;
21 
22  LPCZFunctionLPC (const std::vector<double>& a)
23  : a (a)
24  {
25  }
26  double
27  eval (std::complex<double> z) const
28  {
29  return LPC::eval_z (a, z);
30  }
31 };
32 
33 
34 #if 0
35 GdkPixbuf *lpc_z_transform (const LPCZFunction& zfunc, const std::vector< std::complex<double> >& roots);
36 GdkPixbuf *lpc_z_transform (const std::vector<double>& a, const std::vector< std::complex<double> >& roots);
37 #endif
38 
39 }
40 
41 #endif
Definition: smlpcztrans.hh:13
Definition: smalignedarray.cc:7
Definition: smlpcztrans.hh:18