convertPowerToDecibel

Converts a power value to decibels (dB).

Instantaneous power is the squared amplitude of a signal, and can be a nice domain to work in at times.

Precision: This uses fast_exp which under normal conditions has a peak error under -135 dB over the useful range.

  1. float convertPowerToDecibel(float x)
    nothrow @nogc pure @safe
    float
    convertPowerToDecibel
    (
    float x
    )
  2. double convertPowerToDecibel(double x)

Meta