Definition at line 52 of file CMathTools.hpp.
static __forceinline float Exponent::MathTools::CMathTools::clamp | ( | const float | min, | |
const float | max, | |||
const float | x | |||
) | [inline, static] |
Clamp to a range - By Duncan S Parsons
min | The minimum of the value | |
max | The maximum of the value | |
x | The value |
float | x in range min - max |
Definition at line 281 of file CMathTools.hpp.
static __forceinline double Exponent::MathTools::CMathTools::clamp | ( | const double | x | ) | [inline, static] |
Clamp to 0 - 1 - By Duncan S Parsons
x | The value |
float | x in range min - max |
Definition at line 269 of file CMathTools.hpp.
static __forceinline double Exponent::MathTools::CMathTools::clamp | ( | const double | min, | |
const double | max, | |||
const double | x | |||
) | [inline, static] |
Clamp to 0 - 1 - By Duncan S Parsons
min | The minimum of the value | |
max | The maximum of the value | |
x | The value |
double | x in range min - max |
Definition at line 259 of file CMathTools.hpp.
static __forceinline float Exponent::MathTools::CMathTools::cube | ( | const float | x | ) | [inline, static] |
Cube a number
x | The number to square |
float | x*x*x |
Definition at line 303 of file CMathTools.hpp.
static __forceinline double Exponent::MathTools::CMathTools::cube | ( | const double | x | ) | [inline, static] |
Cube a number
x | The number to square |
double | x*x*x |
Definition at line 293 of file CMathTools.hpp.
static __forceinline double Exponent::MathTools::CMathTools::factorial | ( | const double | x | ) | [inline, static] |
Compute the factorial of a number
x | The value |
double | The factorial |
Definition at line 429 of file CMathTools.hpp.
Referenced by zeroethOrderBessel().
static __forceinline float Exponent::MathTools::CMathTools::fastAtan | ( | const float | x | ) | [inline, static] |
Fast atan - By antiprosynthesis
x | The phase in radians |
float | atan(x) |
Definition at line 245 of file CMathTools.hpp.
static __forceinline double Exponent::MathTools::CMathTools::fastAtan | ( | const double | x | ) | [inline, static] |
Fast atan - By antiprosynthesis
x | The phase in radians |
double | atan(x) |
Definition at line 234 of file CMathTools.hpp.
static __forceinline long Exponent::MathTools::CMathTools::fastDoubleToLong | ( | double | x | ) | [inline, static] |
Double to Long conversion
x | The value to convert to a long |
long | (long)x; |
Definition at line 338 of file CMathTools.hpp.
References IMAN.
static __forceinline long Exponent::MathTools::CMathTools::fastDoubleToLongFloor | ( | const double | x | ) | [inline, static] |
Fast floor
Documented online at http://www.musicdsp.org/showone.php?id=170
x | The value to floor |
long | The floored value |
Definition at line 359 of file CMathTools.hpp.
static __forceinline float Exponent::MathTools::CMathTools::fastMaximum | ( | const float | a, | |
const float | b | |||
) | [inline, static] |
Get the maximum no branching - By quintosardo
a | The A Value | |
b | The B Value |
float | max(a,b); |
Definition at line 199 of file CMathTools.hpp.
static __forceinline double Exponent::MathTools::CMathTools::fastMaximum | ( | const double | a, | |
const double | b | |||
) | [inline, static] |
Get the maximum no branching - By quintosardo
a | The A Value | |
b | The B Value |
double | max(a,b); |
Definition at line 188 of file CMathTools.hpp.
static __forceinline float Exponent::MathTools::CMathTools::fastMinimum | ( | const float | a, | |
const float | b | |||
) | [inline, static] |
Get the minimum of two values no branch - By quintosardo
a | The A Value | |
b | The B Value |
float | min(a,b); |
Definition at line 142 of file CMathTools.hpp.
static __forceinline double Exponent::MathTools::CMathTools::fastMinimum | ( | const double | a, | |
const double | b | |||
) | [inline, static] |
Get the minimum of two values no branch - By quintosardo
a | The A Value | |
b | The B Value |
double | min(a,b); |
Definition at line 131 of file CMathTools.hpp.
static __forceinline float Exponent::MathTools::CMathTools::fastModulus | ( | const float | x | ) | [inline, static] |
Get the floating point component of a value
x | The value to get the floating point component from |
float | The floating point component |
Definition at line 221 of file CMathTools.hpp.
static __forceinline double Exponent::MathTools::CMathTools::fastModulus | ( | const double | x | ) | [inline, static] |
Get the floating point component of a value
x | The value to get the floating point component from |
double | The floating point component |
Definition at line 211 of file CMathTools.hpp.
static __forceinline double Exponent::MathTools::CMathTools::iZero | ( | const double | y | ) | [inline, static] |
Compute bessel function iZero using a series approximation
y | value to compute iZero for |
double | iZero |
Definition at line 382 of file CMathTools.hpp.
static __forceinline long Exponent::MathTools::CMathTools::maximum | ( | const long | a, | |
const long | b | |||
) | [inline, static] |
Get the maximum of two values
a | The A Value | |
b | The B Value |
long | max(a,b); |
Definition at line 177 of file CMathTools.hpp.
static __forceinline float Exponent::MathTools::CMathTools::maximum | ( | const float | a, | |
const float | b | |||
) | [inline, static] |
Get the maximum of two values
a | The A Value | |
b | The B Value |
float | max(a,b); |
Definition at line 166 of file CMathTools.hpp.
static __forceinline double Exponent::MathTools::CMathTools::maximum | ( | const double | a, | |
const double | b | |||
) | [inline, static] |
Get the maximum of two values
a | The A Value | |
b | The B Value |
double | max(a,b); |
Definition at line 155 of file CMathTools.hpp.
static __forceinline long Exponent::MathTools::CMathTools::minimum | ( | const long | a, | |
const long | b | |||
) | [inline, static] |
Get the minimum of two values
a | The A Value | |
b | The B Value |
long | min(a,b); |
Definition at line 120 of file CMathTools.hpp.
static __forceinline float Exponent::MathTools::CMathTools::minimum | ( | const float | a, | |
const float | b | |||
) | [inline, static] |
Get the minimum of two values
a | The A Value | |
b | The B Value |
float | min(a,b); |
Definition at line 109 of file CMathTools.hpp.
static __forceinline double Exponent::MathTools::CMathTools::minimum | ( | const double | a, | |
const double | b | |||
) | [inline, static] |
Get the minimum of two values
a | The A Value | |
b | The B Value |
double | min(a,b); |
Definition at line 98 of file CMathTools.hpp.
static __forceinline float Exponent::MathTools::CMathTools::square | ( | const float | x | ) | [inline, static] |
Square a number
x | The number to square |
float | x*x |
Definition at line 325 of file CMathTools.hpp.
static __forceinline double Exponent::MathTools::CMathTools::square | ( | const double | x | ) | [inline, static] |
Square a number
x | The number to square |
double | x*x |
Definition at line 315 of file CMathTools.hpp.
Referenced by Exponent::MathTools::TRandomNumberGenerator< TypeName >::gaussian1().
static __forceinline double Exponent::MathTools::CMathTools::zeroethOrderBessel | ( | const double | x | ) | [inline, static] |
Compute the zeroth order bessel
x | The input value |
double | The output zeroth order bessel |
Definition at line 402 of file CMathTools.hpp.
References factorial().
const double Exponent::MathTools::CMathTools::CMATH_2PI_DOUBLE [static] |
pi * 2
Definition at line 67 of file CMathTools.hpp.
Referenced by Exponent::MathTools::TRandomNumberGenerator< TypeName >::gaussian3().
const float Exponent::MathTools::CMathTools::CMATH_2PI_FLOAT [static] |
pi * 2
Definition at line 60 of file CMathTools.hpp.
const double Exponent::MathTools::CMathTools::CMATH_4PI_DOUBLE [static] |
pi * 4
Definition at line 68 of file CMathTools.hpp.
const float Exponent::MathTools::CMathTools::CMATH_4PI_FLOAT [static] |
pi * 4
Definition at line 61 of file CMathTools.hpp.
const double Exponent::MathTools::CMathTools::CMATH_HALF_PI_DOUBLE [static] |
pi * 0.5
Definition at line 65 of file CMathTools.hpp.
const float Exponent::MathTools::CMathTools::CMATH_HALF_PI_FLOAT [static] |
pi * 0.5
Definition at line 58 of file CMathTools.hpp.
const double Exponent::MathTools::CMathTools::CMATH_LN2_DOUBLE [static] |
ln(2)
Definition at line 72 of file CMathTools.hpp.
const float Exponent::MathTools::CMathTools::CMATH_LN2_FLOAT [static] |
ln(2)
Definition at line 77 of file CMathTools.hpp.
const double Exponent::MathTools::CMathTools::CMATH_LN2_INV_DOUBLE [static] |
1/ln(2)
Definition at line 73 of file CMathTools.hpp.
const float Exponent::MathTools::CMathTools::CMATH_LN2_INV_FLOAT [static] |
1/ln(2)
Definition at line 78 of file CMathTools.hpp.
const double Exponent::MathTools::CMathTools::CMATH_ONE_THIRD_DOUBLE [static] |
1/3
Definition at line 82 of file CMathTools.hpp.
const float Exponent::MathTools::CMathTools::CMATH_ONE_THIRD_FLOAT [static] |
1/3
Definition at line 87 of file CMathTools.hpp.
const double Exponent::MathTools::CMathTools::CMATH_PI_DOUBLE [static] |
pi
Definition at line 66 of file CMathTools.hpp.
const float Exponent::MathTools::CMathTools::CMATH_PI_FLOAT [static] |
pi
Definition at line 59 of file CMathTools.hpp.
const double Exponent::MathTools::CMathTools::CMATH_TWO_THIRDS_DOUBLE [static] |
2/3
Definition at line 83 of file CMathTools.hpp.
const float Exponent::MathTools::CMathTools::CMATH_TWO_THIRDS_FLOAT [static] |
2/3
Definition at line 88 of file CMathTools.hpp.