16 #ifndef DETECTIONFUNCTION_H 17 #define DETECTIONFUNCTION_H 25 #define DF_SPECDIFF (2) 26 #define DF_PHASEDEV (3) 27 #define DF_COMPLEXSD (4) 28 #define DF_BROADBAND (5) 43 double* getSpectrumMagnitude();
51 double processTimeDomain(
const double* samples);
57 double processFrequencyDomain(
const double* reals,
const double* imags);
63 double HFC(
unsigned int length,
double* src);
64 double specDiff(
unsigned int length,
double* src);
65 double phaseDev(
unsigned int length,
double *srcPhase);
66 double complexSD(
unsigned int length,
double *srcMagnitude,
double *srcPhase);
67 double broadband(
unsigned int length,
double *srcMagnitude);
Window< double > * m_window
unsigned int m_halfLength
PhaseVocoder * m_phaseVoc
double m_whitenRelaxCoeff
unsigned int m_dataLength
double whiteningRelaxCoeff
double * m_phaseHistoryOld