|
Sleipnir
|
Utility class containing static basic math functions. More...
#include <mathb.h>
Static Public Member Functions | |
| static double | LogFact (size_t iN) |
| Returns the log of N factorial. | |
| static double | Sigmoid (double dHeight, double dShift, double dSlope, double dVertical, double dX) |
| Calculates the sigmoid function with the given parameters. | |
| static size_t | GCD (size_t iA, size_t iB) |
| Return greatest common denominator of A and B. | |
| static size_t | Round (double d) |
| Return given value rounded to the nearest unsigned integer. | |
| template<class tType , class tIter > | |
| static bool | LeastSquares (const tIter BeginY, const tIter EndY, const tIter BeginX, const tIter EndX, tType &Alpha, tType &Beta, bool fAlpha=true) |
| static size_t Sleipnir::CMath::GCD | ( | size_t | iA, |
| size_t | iB | ||
| ) | [inline, static] |
| double Sleipnir::CMath::LogFact | ( | size_t | iN | ) | [static] |
Returns the log of N factorial.
| iN | Integer to be factorialed and logged. |
Definition at line 42 of file mathb.cpp.
Referenced by Sleipnir::CStatistics::HypergeometricPDF().
| static size_t Sleipnir::CMath::Round | ( | double | d | ) | [inline, static] |
Return given value rounded to the nearest unsigned integer.
| d | Floating point value to round. |
Definition at line 105 of file mathb.h.
Referenced by Sleipnir::CColor::operator*().
| static double Sleipnir::CMath::Sigmoid | ( | double | dHeight, |
| double | dShift, | ||
| double | dSlope, | ||
| double | dVertical, | ||
| double | dX | ||
| ) | [inline, static] |
Calculates the sigmoid function with the given parameters.
| dHeight | Height (multiplier) of sigmoid. |
| dShift | Horizontal shift (difference) of sigmoid. |
| dSlope | Slope (sharpness) of sigmoid. |
| dVertical | Vertical shift (constant addend) of sigmoid. |
| dX | Point at which sigmoid should be evaluated. |
1.7.6.1