Gist
Public Member Functions | List of all members
CoreTimeDomainFeatures< T > Class Template Reference

#include <CoreTimeDomainFeatures.h>

Public Member Functions

 CoreTimeDomainFeatures ()
 
rootMeanSquare (const std::vector< T > &buffer)
 
peakEnergy (const std::vector< T > &buffer)
 
zeroCrossingRate (const std::vector< T > &buffer)
 

Detailed Description

template<class T>
class CoreTimeDomainFeatures< T >

template class for calculating common time domain audio features. Instantiations of the class should be of either 'float' or 'double' types and no others

Constructor & Destructor Documentation

◆ CoreTimeDomainFeatures()

constructor

Member Function Documentation

◆ peakEnergy()

template<class T >
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

Parameters
buffera time domain buffer containing audio samples
Returns
the peak energy value

◆ rootMeanSquare()

template<class T >
T CoreTimeDomainFeatures< T >::rootMeanSquare ( const std::vector< T > &  buffer)

calculates the Root Mean Square (RMS) of an audio buffer in vector format

Parameters
buffera time domain buffer containing audio samples
Returns
the RMS value

◆ zeroCrossingRate()

template<class T >
T CoreTimeDomainFeatures< T >::zeroCrossingRate ( const std::vector< T > &  buffer)

calculates the zero crossing rate of a time domain audio signal buffer

Parameters
buffera time domain buffer containing audio samples
Returns
the zero crossing rate

The documentation for this class was generated from the following files: