aimstil  5.0.5
til::math Namespace Reference

Namespace for misc. math definitions. More...

Namespaces

 policy
 

Classes

class  Gaussian
 Unnormalized Gaussian. More...
 
class  IsotropicGaussianKernel
 Unnormalized isotropic Gaussian kernel. More...
 
class  PolySolver_real
 Find real roots of a polynomial. More...
 

Functions

INLINE double sinc (double x)
 sinus cardinal More...
 
INLINE double dsinc (double x)
 first derivative of sinc More...
 
INLINE double d2sinc (double x)
 second derivative of sinc More...
 
template<typename T >
huber (T x, T K)
 Huber's penalty function. More...
 
template<typename T >
d_huber (T x, T K)
 Derivative of Huber's penalty function. More...
 
template<typename T >
shrink (T x, T K)
 The shrink operator if |x| > K then x +/- K else 0. More...
 

Detailed Description

Namespace for misc. math definitions.

Function Documentation

◆ d2sinc()

INLINE double til::math::d2sinc ( double  x)

second derivative of sinc

Definition at line 35 of file til_math.h.

◆ d_huber()

template<typename T >
T til::math::d_huber ( x,
K 
)
inline

Derivative of Huber's penalty function.

2*x if |x| < K +/-2*K if |x| > K

◆ dsinc()

INLINE double til::math::dsinc ( double  x)

first derivative of sinc

Definition at line 25 of file til_math.h.

◆ huber()

template<typename T >
T til::math::huber ( x,
K 
)
inline

Huber's penalty function.

x^2 if |x| < K 2*K*|x| - K^2 if |x| > K

◆ shrink()

template<typename T >
T til::math::shrink ( x,
K 
)
inline

The shrink operator if |x| > K then x +/- K else 0.

◆ sinc()

INLINE double til::math::sinc ( double  x)

sinus cardinal

Definition at line 14 of file til_math.h.