qm-dsp
1.8
|
#include <DetectionFunction.h>
Public Member Functions | |
double * | getSpectrumMagnitude () |
DetectionFunction (DFConfig config) | |
virtual | ~DetectionFunction () |
double | processTimeDomain (const double *samples) |
Process a single time-domain frame of audio, provided as frameLength samples. More... | |
double | processFrequencyDomain (const double *reals, const double *imags) |
Process a single frequency-domain frame, provided as frameLength/2+1 real and imaginary component values. More... | |
Private Member Functions | |
void | whiten () |
double | runDF () |
double | HFC (int length, double *src) |
double | specDiff (int length, double *src) |
double | phaseDev (int length, double *srcPhase) |
double | complexSD (int length, double *srcMagnitude, double *srcPhase) |
double | broadband (int length, double *srcMagnitude) |
void | initialise (DFConfig Config) |
void | deInitialise () |
Private Attributes | |
int | m_DFType |
int | m_dataLength |
int | m_halfLength |
int | m_stepSize |
double | m_dbRise |
bool | m_whiten |
double | m_whitenRelaxCoeff |
double | m_whitenFloor |
double * | m_magHistory |
double * | m_phaseHistory |
double * | m_phaseHistoryOld |
double * | m_magPeaks |
double * | m_windowed |
double * | m_magnitude |
double * | m_thetaAngle |
double * | m_unwrapped |
Window< double > * | m_window |
PhaseVocoder * | m_phaseVoc |
Detailed Description
Definition at line 40 of file DetectionFunction.h.
Constructor & Destructor Documentation
DetectionFunction::DetectionFunction | ( | DFConfig | config | ) |
Definition at line 23 of file DetectionFunction.cpp.
References initialise(), m_magHistory, m_magPeaks, m_phaseHistory, and m_phaseHistoryOld.
|
virtual |
Definition at line 34 of file DetectionFunction.cpp.
References deInitialise().
Member Function Documentation
double * DetectionFunction::getSpectrumMagnitude | ( | ) |
Definition at line 272 of file DetectionFunction.cpp.
References m_magnitude.
double DetectionFunction::processTimeDomain | ( | const double * | samples | ) |
Process a single time-domain frame of audio, provided as frameLength samples.
Definition at line 94 of file DetectionFunction.cpp.
References Window< T >::cut(), m_magnitude, m_phaseVoc, m_thetaAngle, m_unwrapped, m_whiten, m_window, m_windowed, PhaseVocoder::processTimeDomain(), runDF(), and whiten().
double DetectionFunction::processFrequencyDomain | ( | const double * | reals, |
const double * | imags | ||
) |
Process a single frequency-domain frame, provided as frameLength/2+1 real and imaginary component values.
Definition at line 106 of file DetectionFunction.cpp.
References m_magnitude, m_phaseVoc, m_thetaAngle, m_unwrapped, m_whiten, PhaseVocoder::processFrequencyDomain(), runDF(), and whiten().
|
private |
Definition at line 117 of file DetectionFunction.cpp.
References m_halfLength, m_magnitude, m_magPeaks, m_whitenFloor, and m_whitenRelaxCoeff.
Referenced by processFrequencyDomain(), and processTimeDomain().
|
private |
Definition at line 130 of file DetectionFunction.cpp.
References broadband(), complexSD(), DF_BROADBAND, DF_COMPLEXSD, DF_HFC, DF_PHASEDEV, DF_SPECDIFF, HFC(), m_DFType, m_halfLength, m_magnitude, m_thetaAngle, phaseDev(), and specDiff().
Referenced by processFrequencyDomain(), and processTimeDomain().
|
private |
Definition at line 164 of file DetectionFunction.cpp.
Referenced by runDF().
|
private |
Definition at line 173 of file DetectionFunction.cpp.
References m_magHistory.
Referenced by runDF().
|
private |
Definition at line 196 of file DetectionFunction.cpp.
References m_phaseHistory, m_phaseHistoryOld, and MathUtilities::princarg().
Referenced by runDF().
|
private |
Definition at line 227 of file DetectionFunction.cpp.
References m_magHistory, m_phaseHistory, m_phaseHistoryOld, and MathUtilities::princarg().
Referenced by runDF().
|
private |
Definition at line 258 of file DetectionFunction.cpp.
References m_dbRise, and m_magHistory.
Referenced by runDF().
|
private |
Definition at line 40 of file DetectionFunction.cpp.
References DFConfig::adaptiveWhitening, DFConfig::dbRise, DFConfig::DFType, DFConfig::frameLength, HanningWindow, m_dataLength, m_dbRise, m_DFType, m_halfLength, m_magHistory, m_magnitude, m_magPeaks, m_phaseHistory, m_phaseHistoryOld, m_phaseVoc, m_stepSize, m_thetaAngle, m_unwrapped, m_whiten, m_whitenFloor, m_whitenRelaxCoeff, m_window, m_windowed, DFConfig::stepSize, DFConfig::whiteningFloor, and DFConfig::whiteningRelaxCoeff.
Referenced by DetectionFunction().
|
private |
Definition at line 77 of file DetectionFunction.cpp.
References m_magHistory, m_magnitude, m_magPeaks, m_phaseHistory, m_phaseHistoryOld, m_phaseVoc, m_thetaAngle, m_unwrapped, m_window, and m_windowed.
Referenced by ~DetectionFunction().
Member Data Documentation
|
private |
Definition at line 73 of file DetectionFunction.h.
Referenced by initialise(), and runDF().
|
private |
Definition at line 74 of file DetectionFunction.h.
Referenced by initialise().
|
private |
Definition at line 75 of file DetectionFunction.h.
Referenced by initialise(), runDF(), and whiten().
|
private |
Definition at line 76 of file DetectionFunction.h.
Referenced by initialise().
|
private |
Definition at line 77 of file DetectionFunction.h.
Referenced by broadband(), and initialise().
|
private |
Definition at line 78 of file DetectionFunction.h.
Referenced by initialise(), processFrequencyDomain(), and processTimeDomain().
|
private |
Definition at line 79 of file DetectionFunction.h.
Referenced by initialise(), and whiten().
|
private |
Definition at line 80 of file DetectionFunction.h.
Referenced by initialise(), and whiten().
|
private |
Definition at line 82 of file DetectionFunction.h.
Referenced by broadband(), complexSD(), deInitialise(), DetectionFunction(), initialise(), and specDiff().
|
private |
Definition at line 83 of file DetectionFunction.h.
Referenced by complexSD(), deInitialise(), DetectionFunction(), initialise(), and phaseDev().
|
private |
Definition at line 84 of file DetectionFunction.h.
Referenced by complexSD(), deInitialise(), DetectionFunction(), initialise(), and phaseDev().
|
private |
Definition at line 85 of file DetectionFunction.h.
Referenced by deInitialise(), DetectionFunction(), initialise(), and whiten().
|
private |
Definition at line 87 of file DetectionFunction.h.
Referenced by deInitialise(), initialise(), and processTimeDomain().
|
private |
Definition at line 88 of file DetectionFunction.h.
Referenced by deInitialise(), getSpectrumMagnitude(), initialise(), processFrequencyDomain(), processTimeDomain(), runDF(), and whiten().
|
private |
Definition at line 89 of file DetectionFunction.h.
Referenced by deInitialise(), initialise(), processFrequencyDomain(), processTimeDomain(), and runDF().
|
private |
Definition at line 90 of file DetectionFunction.h.
Referenced by deInitialise(), initialise(), processFrequencyDomain(), and processTimeDomain().
|
private |
Definition at line 92 of file DetectionFunction.h.
Referenced by deInitialise(), initialise(), and processTimeDomain().
|
private |
Definition at line 93 of file DetectionFunction.h.
Referenced by deInitialise(), initialise(), processFrequencyDomain(), and processTimeDomain().
The documentation for this class was generated from the following files:
Generated by 1.8.11