Gist
|
#include <CoreTimeDomainFeatures.h>
Public Member Functions | |
CoreTimeDomainFeatures () | |
T | rootMeanSquare (const std::vector< T > &buffer) |
T | peakEnergy (const std::vector< T > &buffer) |
T | zeroCrossingRate (const std::vector< T > &buffer) |
template class for calculating common time domain audio features. Instantiations of the class should be of either 'float' or 'double' types and no others
CoreTimeDomainFeatures< T >::CoreTimeDomainFeatures |
constructor
T CoreTimeDomainFeatures< T >::peakEnergy | ( | const std::vector< T > & | buffer | ) |
calculates the peak energy (max absolute value) in a time domain audio signal buffer in vector format
buffer | a time domain buffer containing audio samples |
T CoreTimeDomainFeatures< T >::rootMeanSquare | ( | const std::vector< T > & | buffer | ) |
calculates the Root Mean Square (RMS) of an audio buffer in vector format
buffer | a time domain buffer containing audio samples |
T CoreTimeDomainFeatures< T >::zeroCrossingRate | ( | const std::vector< T > & | buffer | ) |
calculates the zero crossing rate of a time domain audio signal buffer
buffer | a time domain buffer containing audio samples |