如何从maxAmplitude计算分贝,我写了一个Android应用程序获取maxAmplitude在固定的时间间隔,我需要显示的O / P在分贝用户。
How to calculate decibel from maxAmplitude, I wrote an android application to get maxAmplitude at regular interval, I need to show the o/p to the user in decibels.
推荐答案
分贝是的相对的单位,他们的前preSS相对于某些基准功率的信号的功率。
Decibels are a relative unit, they express the power of your signal relative to some reference power.
如果您正在使用的振幅,则公式为:
If you are working with amplitudes, then the formula is:
power_db = 20 * log10(amp / amp_ref);
(请参见 http://en.wikipedia.org/wiki/Decibel#Field_quantities)
还要注意,最大振幅通常不是响度的很好的指标(偶数的功率或)。更典型的是,你应该测量的 RMS功率的的信号,并将其转换为dB代替。
Note also that maximum amplitude is not usually a very good indicator of loudness (or even of power). More typically, you should measure the RMS power of your signal, and convert that to dB instead.
相关推荐
最新文章