Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Log and Exponential functions

Log and exponential functions. More...

Defines

#define pow2i(x)   ((x)<0 ? 0 : (1<<(x)))
 Integer 2^x.

Functions

int SPUC::needed_bits (int n)
 Calculate how many bits are needed to represent the integer n.
int SPUC::needed_bits (double n)
 The number of bits needed to encode {n} symbols. (Yes, it is exact!).
int SPUC::pow2 (int x)
 Calculate two to the power of x (2^x).
double SPUC::pow2 (double x)
 Calculate two to the power of x (2^x).
double SPUC::pow10 (double x)
 Calculate ten to the power of x (10^x).
double SPUC::dB (double x)
 Decibel of x (10*log10(x)).
double SPUC::inv_dB (double x)
 Inverse of decibel.

Detailed Description

Log and exponential functions.


Define Documentation

#define pow2i  )     ((x)<0 ? 0 : (1<<(x)))
 

Integer 2^x.


Function Documentation

double SPUC::dB double  x  )  [inline]
 

Decibel of x (10*log10(x)).

double SPUC::inv_dB double  x  )  [inline]
 

Inverse of decibel.

int SPUC::needed_bits double  n  )  [inline]
 

The number of bits needed to encode {n} symbols. (Yes, it is exact!).

Here is the call graph for this function:

int SPUC::needed_bits int  n  )  [inline]
 

Calculate how many bits are needed to represent the integer n.

double SPUC::pow10 double  x  )  [inline]
 

Calculate ten to the power of x (10^x).

double SPUC::pow2 double  x  )  [inline]
 

Calculate two to the power of x (2^x).

int SPUC::pow2 int  x  )  [inline]
 

Calculate two to the power of x (2^x).


Generated on Fri Sep 16 11:06:48 2005 for spuc by  doxygen 1.4.4