|
template<typename T > |
constexpr T | pi () |
| . More...
|
|
template<> |
constexpr float | pi< float > () |
| . More...
|
|
template<> |
constexpr double | pi< double > () |
| . More...
|
|
template<> |
constexpr long double | pi< long double > () |
| . More...
|
|
template<typename T > |
T | pi_div_180 () |
| More...
|
|
template<typename T > |
T | square (T x) |
| Product of a number with itself. More...
|
|
template<typename T > |
T | dB2linear (T L, bool power=false) |
| Convert a level in decibel to a linear gain factor. More...
|
|
template<typename T > |
T | linear2dB (T x, bool power=false) |
| Convert a linear gain factor to a level in dB. More...
|
|
template<typename T > |
T | deg2rad (T angle) |
| Convert an angle in degrees to an angle in radians. More...
|
|
template<typename T > |
T | rad2deg (T angle) |
| Convert an angle in radians to an angle in degrees. More...
|
|
template<typename T > |
T | fwrap (T x, T full) |
| Wrap x into the interval [0, full ). More...
|
|
template<typename T > |
T | wrap (T x, T full) |
| Wrap x into the interval [0, full ). More...
|
|
template<> |
float | wrap (float x, float full) |
| Wrap x into the interval [0, full ). More...
|
|
template<> |
double | wrap (double x, double full) |
| Wrap x into the interval [0, full ). More...
|
|
template<> |
long double | wrap (long double x, long double full) |
| Wrap x into the interval [0, full ). More...
|
|
template<typename T > |
T | wrap_two_pi (T x) |
|
template<typename T > |
T | next_power_of_2 (T number) |
| Find a power of 2 which is >= a given number. More...
|
|
template<typename I > |
std::iterator_traits< I >::value_type | max_amplitude (I begin, I end) |
| Return the absolute maximum of a series of numbers. More...
|
|
template<typename I > |
std::iterator_traits< I >::value_type | rms (I begin, I end) |
| Root Mean Square (RMS) value of a series of numbers. More...
|
|
template<typename I > |
bool | has_only_zeros (I first, I last) |
| Check if there are only zeros in a range. More...
|
|
template<typename T > |
linear_interpolator< T > | make_linear_interpolator (T first, T last) |
| Helper function for automatic template type deduction. More...
|
|
template<typename T , typename U > |
linear_interpolator< T, U > | make_linear_interpolator (T first, T last, U length) |
| Helper function for automatic template type deduction. More...
|
|
Mathematical constants and helper functions.