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)
  2. double convertPowerToDecibel(double x)
    nothrow @nogc pure @safe
    double
    convertPowerToDecibel
    (
    double x
    )

Meta