The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
mha_utils.hh File Reference

Namespaces

 MHAUtils
 

Functions

bool MHAUtils::is_multiple_of (const unsigned big, const unsigned small)
 
bool MHAUtils::is_power_of_two (const unsigned n)
 
bool MHAUtils::is_multiple_of_by_power_of_two (const unsigned big, const unsigned small)
 
std::string MHAUtils::strip (const std::string &line)
 
std::string MHAUtils::remove (const std::string &str_, char c)
 
bool MHAUtils::is_denormal (mha_real_t x)
 Get the normal-ness of a mha_real_t. More...
 
bool MHAUtils::is_denormal (const mha_complex_t &x)
 Get the normal-ness of a complex number. More...
 
bool MHAUtils::is_denormal (const std::complex< mha_real_t > &x)
 Get the normal-ness of a complex number. More...
 
mha_real_t MHAUtils::spl2hl (mha_real_t f)
 Get the offset of between dB(SPL) and dB(HL) for a given frequency according to ISO 389-7:2005 (freefield); e.g. More...