gridripper::math::SpecMath Class Reference

Special math functions. More...

List of all members.

Static Public Member Functions

static double LambertW (double x)
 Lambert W function.
static double smoothH (double x, double delta)
 Analytic approximation of the Heaviside step function.
static double dsmoothH (double x, double delta)
 Derivative of smoothH.
static double d2smoothH (double x, double delta)
 Second derivative of smoothH.


Detailed Description

Special math functions.

Version:
0.5, 12/08/2008
Since:
GridRipper 0.5, 10/22/2008
Author:
Peter Csizmadia

Member Function Documentation

static double gridripper::math::SpecMath::LambertW ( double  x  )  [inline, static]

Lambert W function.

The inverse of f(w) = w*exp(w).

Parameters:
x the function argument
Returns:
the value or NaN if x is smaller than -exp(-1)

static double gridripper::math::SpecMath::smoothH ( double  x,
double  delta 
) [inline, static]

Analytic approximation of the Heaviside step function.

Parameters:
x the function argument
delta half size of the smooth region
Returns:
the analytic interpolation if abs(x) is less than delta, zero if x is less than -delta, 1 if x is greater than +delta

static double gridripper::math::SpecMath::dsmoothH ( double  x,
double  delta 
) [inline, static]

Derivative of smoothH.

Parameters:
x the function argument
delta half size of the smooth region
Returns:
the derivative; zero if abs(x) is greater or equal to delta

static double gridripper::math::SpecMath::d2smoothH ( double  x,
double  delta 
) [inline, static]

Second derivative of smoothH.

Parameters:
x the function argument
delta half size of the smooth region
Returns:
the second derivative; zero if abs(x) is greater or equal to delta


The documentation for this class was generated from the following file:

Generated on Wed Jun 17 18:47:29 2009 for GridRipper by  doxygen 1.5.6