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)
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);
double * getSpectrumMagnitude()
PhaseVocoder * m_phaseVoc
unsigned int m_dataLength
double broadband(unsigned int length, double *srcMagnitude)
Window< double > * m_window
double complexSD(unsigned int length, double *srcMagnitude, double *srcPhase)
unsigned int m_halfLength
double specDiff(unsigned int length, double *src)
double m_whitenRelaxCoeff
double phaseDev(unsigned int length, double *srcPhase)
void initialise(DFConfig Config)
double processFrequencyDomain(const double *reals, const double *imags)
Process a single frequency-domain frame, provided as frameLength/2+1 real and imaginary component val...
double HFC(unsigned int length, double *src)
double processTimeDomain(const double *samples)
Process a single time-domain frame of audio, provided as frameLength samples.
double * m_phaseHistoryOld
virtual ~DetectionFunction()
Various shaped windows for sample frame conditioning, including cosine windows (Hann etc) and triangu...
double whiteningRelaxCoeff