00001
00029 #ifndef SIGFUN_H
00030 #define SIGFUN_H
00031
00032 #include <itpp/base/vec.h>
00033
00034
00035 namespace itpp
00036 {
00037
00069 void xcorr_old(const vec &x, const vec &y, vec &out, const int max_lag = -1, const std::string scaleopt = "none");
00070 void xcorr(const vec &x, const vec &y, vec &out, const int max_lag = -1, const std::string scaleopt = "none");
00100 vec xcorr_old(const vec &x, const vec &y, const int max_lag = -1, const std::string scaleopt = "none");
00101 vec xcorr(const vec &x, const vec &y, const int max_lag = -1, const std::string scaleopt = "none");
00109 cvec xcorr(const cvec &x, const cvec &y, const int max_lag = -1, const std::string scaleopt = "none");
00110
00111
00137 vec xcorr_old(const vec &x, const int max_lag = -1, const std::string scaleopt = "none");
00138 vec xcorr(const vec &x, const int max_lag = -1, const std::string scaleopt = "none");
00146 cvec xcorr(const cvec &x, const int max_lag = -1, const std::string scaleopt = "none");
00147
00153 void xcorr(const cvec &x, const cvec &y, cvec &out, const int max_lag = -1, const std::string scaleopt = "none",
00154 bool autoflag = true);
00155
00167 mat cov(const mat &X, bool is_zero_mean = false);
00168
00169
00170
00176 vec spectrum(const vec &v, int nfft = 256, int noverlap = 0);
00177
00183 vec spectrum(const vec &v, const vec &w, int noverlap = 0);
00184
00190 vec filter_spectrum(const vec &a, int nfft = 256);
00191
00197 vec filter_spectrum(const vec &a, const vec &b, int nfft = 256);
00198
00201 }
00202
00203 #endif // #ifndef SIGFUN_H