D23103: Add decibel power units (dBW and multiples)
Ismael Asensio
noreply at phabricator.kde.org
Sun Aug 11 21:24:40 BST 2019
iasensio created this revision.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
iasensio requested review of this revision.
REVISION SUMMARY
Add decibel power units (dBW and mulitples)
Decibel power units are widely used in the fields of signal trasnmission and radiofrequency.
This patch adds decibel units to the Power category (dBm, dbW, dBµW and dBk).
The decibel calculation might be also interesting to other categories such as voltage or pressure (acoustics)
TEST PLAN
- Check the units of the power category on krunner
- The reference unit: 1W = 0dBW = 30dBm = 60dBµW = -30dBk
- The decibel is a logarithmic scale so multiplying on natural units implies addition in decibel units:
10W = 10dBW = 40dBm = 70dBµW = -20dBk
REPOSITORY
R292 KUnitConversion
BRANCH
log_power_units
REVISION DETAIL
https://phabricator.kde.org/D23103
AFFECTED FILES
src/power.cpp
src/unit.h
To: iasensio
Cc: kde-frameworks-devel, LeGast00n, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190811/182bf09c/attachment.html>
More information about the Kde-frameworks-devel
mailing list