aboutsummaryrefslogtreecommitdiffstats
path: root/fpga
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-04-15 15:03:11 -0700
committerAaron Rossetto <aaron.rossetto@ni.com>2020-04-17 10:27:49 -0500
commit18e41b32ffa9046287d7cb1d438ad1343a50fd71 (patch)
tree12c85472dfdd61ab7a83a8583470de85ce5efd7b /fpga
parent261ee6d677b83ca15a3d38ddbb0c02ad5d4602fe (diff)
downloaduhd-18e41b32ffa9046287d7cb1d438ad1343a50fd71.tar.gz
uhd-18e41b32ffa9046287d7cb1d438ad1343a50fd71.tar.bz2
uhd-18e41b32ffa9046287d7cb1d438ad1343a50fd71.zip
math: Add dB_to_lin() and lin_to_dB()
These are simply shorthands, but make the code a little more readable with respect to intent. It allows to replace const double power_db = 10 * std::log10(power_lin); with const double power_db = lin_to_dB(power_lin); which expresses the intent a little more clearly and concisely.
Diffstat (limited to 'fpga')
0 files changed, 0 insertions, 0 deletions