library of assembled shared sources

http://lass.cocamware.com

DB

collection of conversion functions for dB More...


Functions

template<typename T >
lass::num::pow2dB (const T &power)
 power to decibels: y = 10 * log10(x)
template<typename T >
lass::num::amp2dB (const T &amplitude)
 amplitude to decibels: y = 20 * log10(x)
template<typename T >
lass::num::dB2pow (const T &decibels)
 decibels to power: y = num::pow(10, x / 10)
template<typename T >
lass::num::dB2amp (const T &decibels)
 decibels to amplitude: y = num::pow(10, x / 20)
template<typename T >
lass::num::p2dB (const T &iValue)
 Converts an absolute acoustical pressure into decibels.
template<typename T >
lass::num::W2dB (const T &iValue)
 Converts a absolute acoustical power into decibels.
template<typename T >
lass::num::I2dB (const T &iValue)
 Converts an intensity into decibels.
template<typename T >
lass::num::dB2p (const T &iValue)
 Converts decibels into a pressure .
template<typename T >
lass::num::dB2W (const T &iValue)
 Converts decibels into a power.
template<typename T >
lass::num::dB2I (const T &iValue)
 Converts decibels into an intensity.


Detailed Description

collection of conversion functions for dB

Function Documentation

template<typename T >
T lass::num::pow2dB ( const T &  power  )  [inline]

power to decibels: y = 10 * log10(x)

Definition at line 65 of file db.h.

References LASS_NUM_DB_10_OVER_LN10, lass::num::log(), and lass::stde::T.

template<typename T >
T lass::num::amp2dB ( const T &  amplitude  )  [inline]

amplitude to decibels: y = 20 * log10(x)

Definition at line 73 of file db.h.

References LASS_NUM_DB_20_OVER_LN10, lass::num::log(), and lass::stde::T.

template<typename T >
T lass::num::dB2pow ( const T &  decibels  )  [inline]

decibels to power: y = num::pow(10, x / 10)

Definition at line 81 of file db.h.

References lass::num::exp(), LASS_NUM_DB_LN10_OVER_10, and lass::stde::T.

template<typename T >
T lass::num::dB2amp ( const T &  decibels  )  [inline]

decibels to amplitude: y = num::pow(10, x / 20)

Definition at line 89 of file db.h.

References lass::num::exp(), LASS_NUM_DB_LN10_OVER_20, and lass::stde::T.

template<typename T >
T lass::num::p2dB ( const T &  iValue  )  [inline]

Converts an absolute acoustical pressure into decibels.

Definition at line 56 of file db.inl.

References lass::num::isNaN(), LASS_NUM_DB_20_OVER_LN10, LASS_NUM_REFERENCE_PRESSURE_P0, LASS_THROW, lass::num::log(), and lass::stde::T.

template<typename T >
T lass::num::W2dB ( const T &  iValue  )  [inline]

Converts a absolute acoustical power into decibels.

Definition at line 69 of file db.inl.

References lass::num::isNaN(), LASS_NUM_DB_10_OVER_LN10, LASS_NUM_REFERENCE_POWER_W0, LASS_THROW, lass::num::log(), and lass::stde::T.

template<typename T >
T lass::num::I2dB ( const T &  iValue  )  [inline]

Converts an intensity into decibels.

The intensity represents the intensity in all directions expressed in Watts/m^2, referenced to 10^-12.

Definition at line 82 of file db.inl.

References lass::num::isNaN(), LASS_NUM_DB_10_OVER_LN10, LASS_NUM_REFERENCE_INTENSITY_I0, LASS_THROW, lass::num::log(), and lass::stde::T.

template<typename T >
T lass::num::dB2p ( const T &  iValue  )  [inline]

Converts decibels into a pressure .

Definition at line 95 of file db.inl.

References lass::num::exp(), LASS_NUM_DB_LN10_OVER_20, LASS_NUM_REFERENCE_PRESSURE_P0, and lass::stde::T.

template<typename T >
T lass::num::dB2W ( const T &  iValue  )  [inline]

Converts decibels into a power.

Definition at line 102 of file db.inl.

References lass::num::exp(), LASS_NUM_DB_LN10_OVER_10, LASS_NUM_REFERENCE_POWER_W0, and lass::stde::T.

template<typename T >
T lass::num::dB2I ( const T &  iValue  )  [inline]

Converts decibels into an intensity.

The intensity represents the intensity in all directions expressed in Watts/m^2, referenced to 10^-12

Definition at line 109 of file db.inl.

References lass::num::exp(), LASS_NUM_DB_LN10_OVER_10, LASS_NUM_REFERENCE_INTENSITY_I0, and lass::stde::T.


Generated on Mon Nov 10 14:22:06 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo