3 #ifndef SPECTMORPH_LPC_HH 4 #define SPECTMORPH_LPC_HH 18 const float MIX_FREQ = 44100;
20 void compute_lpc (std::vector<double>& lpc,
const float *begin,
const float *end);
21 void lpc2lsf (
const std::vector<double>& lpc, std::vector<float>& lpc_lsf_p, std::vector<float>& lpc_lsf_q);
22 void lsf2lpc (
const std::vector<float>& lsf_p,
const std::vector<float>& lsf_q, std::vector<double>& lpc);
24 double eval_lpc (
const std::vector<double>& lpc,
double f);
27 std::vector<double> p_a;
28 std::vector<double> p_b;
31 std::vector<double> q_a;
32 std::vector<double> q_b;
39 bool init (
const std::vector<float>& lpc_lsf_p,
const std::vector<float>& lpc_lsf_q);
40 double eval (
double f);
43 long double eval_z (
const std::vector<double>& lpc, std::complex<long double> z);
44 bool find_roots (
const std::vector<double>& lpc, std::vector< std::complex<double> >& roots);
45 void roots2lpc (
const std::vector< std::complex<double> >& roots, std::vector<double>& lpc);
46 void make_stable_roots (std::vector< std::complex<double> >& roots);
Definition: smalignedarray.cc:7