#include <FWMath.h>
This class contains all kind of mathematical support functions
Static Public Member Functions | |
static double | mod (double dividend, double divisor) |
static double | div (double dividend, double divisor) |
static bool | close (double one, double two) |
static int | stepfunction (double i) |
static int | sign (double i) |
static int | round (double d) |
static double | max (double a, double b) |
static double | dBm2mW (double dBm) |
static bool FWMath::close | ( | double | one, | |
double | two | |||
) | [inline, static] |
Tests whether two doubles are close enough to be declared equal.
00079 { 00080 return fabs(one-two)<EPSILON; 00081 }
static double FWMath::dBm2mW | ( | double | dBm | ) | [inline, static] |
static double FWMath::div | ( | double | dividend, | |
double | divisor | |||
) | [inline, static] |
static double FWMath::max | ( | double | a, | |
double | b | |||
) | [inline, static] |
static double FWMath::mod | ( | double | dividend, | |
double | divisor | |||
) | [inline, static] |
static int FWMath::round | ( | double | d | ) | [inline, static] |
static int FWMath::sign | ( | double | i | ) | [inline, static] |
static int FWMath::stepfunction | ( | double | i | ) | [inline, static] |