Functions | |
double | simth::arg (const Complex &comp) |
int | simth::inversePower2 (int x) |
double | simth::db2linearPowerRatio (double snr) |
double | simth::db2reciprocalLinearPowerRatio (double snr) |
|
Returns the argument (phase) of the given complex number in the range from 0 to 2pi. Note that the corresponging function of the standard library returns the argument in the range from -pi to pi. |
|
Returns if the given integer argument x is a power to 2, i.e. where y is an integer value (actually it is the return value). If the integer argument x is not a power to two, the function throws an std::runtime_error. |
|
Returns the linear power ratio for the power ratio given in dB as argument: . |
|
Returns the inverse linear power ratio for the power ratio given in dB as argument: . |